|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.DefaultValueInfo
uk.ac.starlink.votable.datalink.ServiceDescriptorInfo
public class ServiceDescriptorInfo
ValueInfo for service descriptor values.
Constructor Summary | |
---|---|
ServiceDescriptorInfo(java.lang.String name,
java.lang.String description,
StarTable table)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class uk.ac.starlink.table.DefaultValueInfo |
---|
formatClass, formatShape, generalise, getContentClass, getDescription, getDomainMappers, getElementSize, getName, getShape, getUCD, getUnitString, getUtype, isArray, isNullable, setContentClass, setDescription, setDomainMappers, setElementSize, setName, setNullable, setShape, setUCD, setUnitString, setUtype, toString, unformatShape |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 unknownMethod Detail |
---|
public java.lang.String formatValue(java.lang.Object value, int maxLength)
ValueInfo
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
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |