public class ServiceDescriptorInfo extends DefaultValueInfo
Constructor and Description |
---|
ServiceDescriptorInfo(java.lang.String name,
java.lang.String description,
StarTable table)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatDescriptor(ServiceDescriptor sd,
StarTable table)
Returns a string detailing the state of a given ServiceDesciptor
in a human-readable form.
|
java.lang.String |
formatValue(java.lang.Object value,
int maxLength)
Returns a string representation of a given value described by this
ValueInfo . |
java.lang.Object |
unformatString(java.lang.String txt)
Always returns null.
|
formatClass, formatShape, generalise, getAuxData, getContentClass, getDescription, getDomainMappers, getElementSize, getName, getShape, getUCD, getUnitString, getUtype, getXtype, isArray, isNullable, setAuxData, setContentClass, setDescription, setDomainMappers, setElementSize, setName, setNullable, setShape, setUCD, setUnitString, setUtype, setXtype, toString, unformatShape
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuxDatumByName, setAuxDatum
public ServiceDescriptorInfo(java.lang.String name, java.lang.String description, StarTable table)
name
- descriptor name, should not be nulldescription
- descriptor description, may be null
if no relevant information is availabletable
- table to which the values of this info refer;
may be null if inapplicable or unknownpublic java.lang.String formatValue(java.lang.Object value, int maxLength)
ValueInfo
ValueInfo
. The returned string should be
no longer than a given maximum length.formatValue
in interface ValueInfo
formatValue
in class DefaultValueInfo
value
- the value to representmaxLength
- the maximum number of characters in the returned
stringpublic java.lang.Object unformatString(java.lang.String txt)
unformatString
in interface ValueInfo
unformatString
in class DefaultValueInfo
txt
- the string representation of a value described by
this ValueInfo
rep
; must match
this info's content class (or be null)public static java.lang.String formatDescriptor(ServiceDescriptor sd, StarTable table)
sd
- service descriptortable
- table to which the descriptor refers;
may be null if inapplicable or unknown