Package uk.ac.starlink.votable.datalink
Class ServiceDescriptorInfo
- java.lang.Object
-
- uk.ac.starlink.table.DefaultValueInfo
-
- uk.ac.starlink.votable.datalink.ServiceDescriptorInfo
-
- All Implemented Interfaces:
uk.ac.starlink.table.ValueInfo
public class ServiceDescriptorInfo extends uk.ac.starlink.table.DefaultValueInfoValueInfo for service descriptor values.- Since:
- 11 Dec 2017
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description ServiceDescriptorInfo(java.lang.String name, java.lang.String description, uk.ac.starlink.table.StarTable table)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatDescriptor(ServiceDescriptor sd, uk.ac.starlink.table.StarTable table)Returns a string detailing the state of a given ServiceDesciptor in a human-readable form.java.lang.StringformatValue(java.lang.Object value, int maxLength)java.lang.ObjectunformatString(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
-
-
-
-
Constructor Detail
-
ServiceDescriptorInfo
public ServiceDescriptorInfo(java.lang.String name, java.lang.String description, uk.ac.starlink.table.StarTable table)Constructor.- Parameters:
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 unknown
-
-
Method Detail
-
formatValue
public java.lang.String formatValue(java.lang.Object value, int maxLength)- Specified by:
formatValuein interfaceuk.ac.starlink.table.ValueInfo- Overrides:
formatValuein classuk.ac.starlink.table.DefaultValueInfo
-
unformatString
public java.lang.Object unformatString(java.lang.String txt)
Always returns null.- Specified by:
unformatStringin interfaceuk.ac.starlink.table.ValueInfo- Overrides:
unformatStringin classuk.ac.starlink.table.DefaultValueInfo
-
formatDescriptor
public static java.lang.String formatDescriptor(ServiceDescriptor sd, uk.ac.starlink.table.StarTable table)
Returns a string detailing the state of a given ServiceDesciptor in a human-readable form.- Parameters:
sd- service descriptortable- table to which the descriptor refers; may be null if inapplicable or unknown- Returns:
- multi-line description string
-
-