|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.data.InputMeta
public class InputMeta
Contains user-directed metadata to describe user-supplied input data coordinate values used for plots.
A number of the setter methods return this object, to facilitate declarations where method invocations are chained so that the configured metadata object can be returned in a single expression rather than multiple statements (cf StringBuffer).
Constructor Summary | |
---|---|
InputMeta(String shortName,
String longName)
Constructor. |
Method Summary | |
---|---|
String |
getLongName()
Returns a potentially more descriptive name suitable for use in a GUI. |
String |
getShortDescription()
Returns a short description string. |
String |
getShortName()
Returns the basic one-word name, not case-sensitive, for use in command-line interfaces. |
String |
getValueUsage()
Returns a a short usage fragment that describes the form of the data values represented by this coordinate. |
String |
getXmlDescription()
Returns an XML string suitable for insertion into a user document. |
InputMeta |
setShortDescription(String shortDescription)
Sets a short description string. |
InputMeta |
setValueUsage(String usage)
Sets a usage string which should give some clue how to specify this key from a string. |
InputMeta |
setXmlDescription(String xmlDescription)
Sets a documentation string. |
InputMeta |
setXmlDescription(String[] lines)
Convenience method to set the XML description from an array of text lines. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputMeta(String shortName, String longName)
shortName
- basic name, no spaces, not case-sensitive,
to be used in command-line interfacelongName
- name for use in GUIMethod Detail |
---|
public String getShortName()
public String getLongName()
public String getValueUsage()
Examples might be something like "deg
"
or "boolean
";
public String getShortDescription()
public String getXmlDescription()
public InputMeta setValueUsage(String usage)
Examples might be something like "float
"
or "boolean
";
usage
- usage string
public InputMeta setShortDescription(String shortDescription)
shortDescription
- one-line description
public InputMeta setXmlDescription(String xmlDescription)
Permissible elements include p, ul, li, dl, dt, dd, em, code, strong. Lists go inside paragraphs.
public InputMeta setXmlDescription(String[] lines)
setXmlDescription
is called on the result of joining the lines with newline characters.
lines
- lines of documentation string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |