public class GenericTypeDescriptor extends AbstractTypeDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
tagName |
definition, eol, label, legalPartsOfSpeech, partofspeech, validated
Constructor and Description |
---|
GenericTypeDescriptor()
Create an empty type descriptor, without any content.
|
GenericTypeDescriptor(String lab,
String pos,
String def)
Create a new generic type descriptor, with the given contents .
|
Modifier and Type | Method and Description |
---|---|
static AbstractTypeDescriptor |
getInstanceFromXML(org.xml.sax.Attributes attrs)
Parses the XML parms that go along with the tag in getTagName().
|
static AbstractTypeDescriptor |
getInstanceFromXMLDOM(org.w3c.dom.Element elem) |
static String |
getTagName()
Gives the tag name that will be used by XML to represent this descriptor
|
String |
toString() |
String |
toXML(String indent)
Translate the descriptor into XML.
|
equals, getDefinition, getLabel, getPOS, getTrimmedString, isValidated, setDefinition, setLabel, setValidated
public GenericTypeDescriptor()
public GenericTypeDescriptor(String lab, String pos, String def)
lab
- the term to which this descriptor applies.pos
- the part of speech as a stringdef
- The definition part of this descriptor, possibly including
exemplars, usage, etc.TypeDescriptor#legalPartsOfSpeech
public static String getTagName()
public String toXML(String indent)
toXML
in class AbstractTypeDescriptor
indent
- For convenience, what is the current indentation prefix?public static AbstractTypeDescriptor getInstanceFromXML(org.xml.sax.Attributes attrs)
attrs
- the Attributes passed to org.xml.sax.startElementcharger.xml.CGXParser
public static AbstractTypeDescriptor getInstanceFromXMLDOM(org.w3c.dom.Element elem)
public String toString()
toString
in class Object