|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--VOTableUtil.Field
Field class.
| Inner Class Summary | |
static class |
Field.Datatype
Enumeration types for the Datatype property. |
static class |
Field.Type
Enumeration types for the Type property. |
| Field Summary | |
protected java.lang.String |
_Arraysize
|
protected java.lang.String |
_Datatype
|
protected static com.tbf.xml.XmlValidator |
_Datatype_validator_
|
protected java.lang.String |
_Description
|
protected java.util.Vector |
_doc_declared_namespaces_
Storage for namespaces declared in the input document. |
protected java.lang.String |
_Id
Declarations for the XML related fields. |
protected java.util.Vector |
_Link
|
protected static com.tbf.xml.XmlValidator |
_Link_validator_
|
protected java.lang.String |
_Name
|
protected static com.tbf.xml.XmlNamespaceManager |
_nsm_
The default XmlNamespaceManager for this class. |
protected java.lang.String |
_Precision
|
protected java.lang.String |
_Ref
|
protected java.lang.String |
_Type
|
protected static com.tbf.xml.XmlValidator |
_Type_validator_
|
protected java.lang.String |
_Ucd
|
protected java.util.Vector |
_unexpected_xml_errors_
Storage for UNEXPECTED_XML errors. |
protected java.lang.String |
_Unit
|
protected static boolean |
_validators_created
This flag is used to used to check whether the validators have been created. |
protected java.util.Vector |
_Values
|
protected static com.tbf.xml.XmlValidator |
_Values_validator_
|
protected java.lang.String |
_Width
|
static java.lang.String |
$ARRAYSIZE
Constant for "arraysize" node name. |
static java.lang.String |
$DATATYPE
Constant for "datatype" node name. |
static java.lang.String |
$DESCRIPTION
Constant for "DESCRIPTION" node name. |
static java.lang.String |
$FIELD
Constant for "FIELD" node name. |
static java.lang.String |
$ID
Constant for "ID" node name. |
static java.lang.String |
$LINK
Constant for "LINK" node name. |
static java.lang.String |
$NAME
Constant for "name" node name. |
static java.lang.String |
$PRECISION
Constant for "precision" node name. |
static java.lang.String |
$REF
Constant for "ref" node name. |
static java.lang.String |
$TYPE
Constant for "type" node name. |
static java.lang.String |
$UCD
Constant for "ucd" node name. |
static java.lang.String |
$UNIT
Constant for "unit" node name. |
static java.lang.String |
$VALUES
Constant for "VALUES" node name. |
static java.lang.String |
$WIDTH
Constant for "width" node name. |
| Constructor Summary | |
Field()
Default no args constructor. |
|
Field(com.tbf.xml.XmlElement xml)
Creates and populates an instance from the provided parse tree. |
|
Field(com.tbf.xml.XmlElement xml,
com.tbf.xml.XmlObject parent)
Creates and populates an instance from the provided parse tree. |
|
| Method Summary | |
void |
addLink(Link obj)
|
void |
addValue(Values obj)
|
protected static void |
createValidators()
Create the validators for this class. |
void |
deleteArraysize()
Discards Arraysize's value. |
void |
deleteDatatype()
Discards Datatype's value. |
void |
deleteDescription()
Discards Description's value. |
void |
deleteId()
Discards Id's value. |
void |
deleteName()
Discards Name's value. |
void |
deletePrecision()
Discards Precision's value. |
void |
deleteRef()
Discards Ref's value. |
void |
deleteType()
Discards Type's value. |
void |
deleteUcd()
Discards Ucd's value. |
void |
deleteUnit()
Discards Unit's value. |
void |
deleteWidth()
Discards Width's value. |
void |
fromXml(com.tbf.xml.XmlElement xml)
Deprecated. will be removed in a future release. Use unmarshal(XmlElement). |
java.util.Vector |
get$DocumentNamespaces()
Get the Vector holding the namespaces declared in the element that this instance was unmarshalled from. |
com.tbf.xml.XmlNamespaceManager |
get$NamespaceManager()
Get the XmlNamespaceManager for this class. |
com.tbf.xml.XmlObject |
get$Parent()
Get this object's parent object. |
java.lang.String |
getArraysize()
Get the Arraysize property. |
static java.lang.String |
getClassXmlTagName()
Gets the XML tag name for this class. |
java.lang.String |
getDatatype()
Get the Datatype property. |
java.lang.String |
getDescription()
Get the Description property. |
java.lang.String |
getId()
Get the Id property. |
java.util.Vector |
getLink()
Get the Link property. |
Link |
getLinkAt(int index)
|
int |
getLinkCount()
Get the count of elements in the Link property. |
java.lang.String |
getName()
Get the Name property. |
java.lang.String |
getPrecision()
Get the Precision property. |
java.lang.String |
getRef()
Get the Ref property. |
java.lang.String |
getType()
Get the Type property. |
java.lang.String |
getUcd()
Get the Ucd property. |
java.lang.String |
getUnit()
Get the Unit property. |
java.util.Vector |
getValidationErrors()
Checks each field on the object for validity and returns a Vector holding the validation errors. |
java.util.Vector |
getValidationErrors(boolean return_on_error)
Checks each field on the object for validity and returns a Vector holding the validation errors. |
java.util.Vector |
getValidationErrors(boolean return_on_error,
boolean traverse)
Checks each field on the object for validity and returns a Vector holding the validation errors. |
Values |
getValueAt(int index)
|
int |
getValueCount()
Get the count of elements in the Values property. |
java.util.Vector |
getValues()
Get the Values property. |
java.lang.String |
getWidth()
Get the Width property. |
java.lang.String |
getXmlTagName()
Gets the XML tag name for this object. |
boolean |
hasArraysize()
Checks for whether Arraysize is set or not. |
boolean |
hasDatatype()
Checks for whether Datatype is set or not. |
boolean |
hasDescription()
Checks for whether Description is set or not. |
boolean |
hasId()
Checks for whether Id is set or not. |
boolean |
hasName()
Checks for whether Name is set or not. |
boolean |
hasPrecision()
Checks for whether Precision is set or not. |
boolean |
hasRef()
Checks for whether Ref is set or not. |
boolean |
hasType()
Checks for whether Type is set or not. |
boolean |
hasUcd()
Checks for whether Ucd is set or not. |
boolean |
hasUnit()
Checks for whether Unit is set or not. |
boolean |
hasWidth()
Checks for whether Width is set or not. |
boolean |
isValid()
Checks this object to see if it will produce valid XML. |
void |
marshal(java.io.OutputStream stream)
Writes this instance to a stream. |
void |
marshal(com.tbf.xml.XmlOutputStream out)
Writes this instance to an XmlOutputStream. |
protected com.tbf.xml.XmlAttributeList |
marshalAttributes(com.tbf.xml.XmlAttributeList attrs)
Get the XmlAttributeList for marshalling. |
static boolean |
matches(com.tbf.xml.XmlElement xml,
com.tbf.xml.XmlObject parent)
Checks the XML to see whether it matches the XML contents of this class. |
void |
removeLink(Link obj)
|
void |
removeLinkAt(int index)
|
void |
removeValue(Values obj)
|
void |
removeValueAt(int index)
|
void |
set$Parent(com.tbf.xml.XmlObject parent)
Set this object's parent object. |
void |
setArraysize(java.lang.String newValue)
Set the Arraysize property. |
void |
setDatatype(com.tbf.util.EnumType new_value)
|
void |
setDatatype(java.lang.String enumValue)
Set the Datatype property. |
void |
setDescription(java.lang.String newValue)
Set the Description property. |
void |
setId(java.lang.String newValue)
Set the Id property. |
void |
setLink(java.util.Vector newList)
Set the Link property. |
void |
setLinkAt(Link obj,
int index)
|
void |
setName(java.lang.String newValue)
Set the Name property. |
void |
setPrecision(java.lang.String newValue)
Set the Precision property. |
void |
setRef(java.lang.String newValue)
Set the Ref property. |
void |
setType(com.tbf.util.EnumType new_value)
|
void |
setType(java.lang.String enumValue)
Set the Type property. |
void |
setUcd(java.lang.String newValue)
Set the Ucd property. |
void |
setUnit(java.lang.String newValue)
Set the Unit property. |
void |
setValueAt(Values obj,
int index)
|
void |
setValues(java.util.Vector newList)
Set the Values property. |
void |
setWidth(java.lang.String newValue)
Set the Width property. |
void |
toXml(java.io.OutputStream stream)
Deprecated. This method will be removed in a future release. Use marshal(XmlOutputStream) or marshal(OutputStream). |
void |
toXml(java.io.OutputStream stream,
boolean embed_files)
Deprecated. This method will be removed in a future release. Use marshal(XmlOutputStream) or marshal(OutputStream). |
void |
toXml(java.io.OutputStream stream,
java.lang.String indent,
boolean embed_files)
Deprecated. This method will be removed in a future release. Use marshal(XmlOutputStream) or marshal(OutputStream). |
static Field |
unmarshal(java.io.InputStream in)
This method unmarshals an XML document instance into an instance of this class. |
void |
unmarshal(com.tbf.xml.XmlElement xml)
Populates this object with the values from the parsed XML. |
protected void |
unmarshalAttributes(com.tbf.xml.XmlElement xml)
Unmarshal any attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String $NAME
public static final java.lang.String $WIDTH
public static final java.lang.String $REF
public static final java.lang.String $DATATYPE
public static final java.lang.String $DESCRIPTION
public static final java.lang.String $FIELD
public static final java.lang.String $PRECISION
public static final java.lang.String $ARRAYSIZE
public static final java.lang.String $LINK
public static final java.lang.String $UCD
public static final java.lang.String $ID
public static final java.lang.String $TYPE
public static final java.lang.String $VALUES
public static final java.lang.String $UNIT
protected java.lang.String _Id
protected java.lang.String _Unit
protected java.lang.String _Datatype
protected java.lang.String _Precision
protected java.lang.String _Width
protected java.lang.String _Ref
protected java.lang.String _Name
protected java.lang.String _Ucd
protected java.lang.String _Arraysize
protected java.lang.String _Type
protected java.lang.String _Description
protected java.util.Vector _Values
protected java.util.Vector _Link
protected transient java.util.Vector _unexpected_xml_errors_
protected static transient boolean _validators_created
protected static transient com.tbf.xml.XmlValidator _Datatype_validator_
protected static transient com.tbf.xml.XmlValidator _Type_validator_
protected static transient com.tbf.xml.XmlValidator _Values_validator_
protected static transient com.tbf.xml.XmlValidator _Link_validator_
protected static com.tbf.xml.XmlNamespaceManager _nsm_
XmlNamespaceManager for this class.protected java.util.Vector _doc_declared_namespaces_
| Constructor Detail |
public Field()
public Field(com.tbf.xml.XmlElement xml)
xml - the parse tree
public Field(com.tbf.xml.XmlElement xml,
com.tbf.xml.XmlObject parent)
xml - the parse treeparent - the containibg XmlObject| Method Detail |
public java.lang.String getId()
public void setId(java.lang.String newValue)
public boolean hasId()
public void deleteId()
public java.lang.String getUnit()
public void setUnit(java.lang.String newValue)
public boolean hasUnit()
public void deleteUnit()
public java.lang.String getDatatype()
public void setDatatype(java.lang.String enumValue)
public void setDatatype(com.tbf.util.EnumType new_value)
public boolean hasDatatype()
public void deleteDatatype()
public java.lang.String getPrecision()
public void setPrecision(java.lang.String newValue)
public boolean hasPrecision()
public void deletePrecision()
public java.lang.String getWidth()
public void setWidth(java.lang.String newValue)
public boolean hasWidth()
public void deleteWidth()
public java.lang.String getRef()
public void setRef(java.lang.String newValue)
public boolean hasRef()
public void deleteRef()
public java.lang.String getName()
public void setName(java.lang.String newValue)
public boolean hasName()
public void deleteName()
public java.lang.String getUcd()
public void setUcd(java.lang.String newValue)
public boolean hasUcd()
public void deleteUcd()
public java.lang.String getArraysize()
public void setArraysize(java.lang.String newValue)
public boolean hasArraysize()
public void deleteArraysize()
public java.lang.String getType()
public void setType(java.lang.String enumValue)
public void setType(com.tbf.util.EnumType new_value)
public boolean hasType()
public void deleteType()
public java.lang.String getDescription()
public void setDescription(java.lang.String newValue)
public boolean hasDescription()
public void deleteDescription()
public java.util.Vector getValues()
public Values getValueAt(int index)
throws java.lang.IndexOutOfBoundsException
public int getValueCount()
public void setValues(java.util.Vector newList)
public void addValue(Values obj)
public void setValueAt(Values obj,
int index)
throws java.lang.IndexOutOfBoundsException
public void removeValue(Values obj)
public void removeValueAt(int index)
throws java.lang.IndexOutOfBoundsException
public java.util.Vector getLink()
public Link getLinkAt(int index)
throws java.lang.IndexOutOfBoundsException
public int getLinkCount()
public void setLink(java.util.Vector newList)
public void addLink(Link obj)
public void setLinkAt(Link obj,
int index)
throws java.lang.IndexOutOfBoundsException
public void removeLink(Link obj)
public void removeLinkAt(int index)
throws java.lang.IndexOutOfBoundsException
public java.lang.String getXmlTagName()
getXmlTagName in interface com.tbf.xml.XmlObjectpublic static java.lang.String getClassXmlTagName()
protected static void createValidators()
public boolean isValid()
isValid in interface com.tbf.xml.XmlObjectpublic java.util.Vector getValidationErrors()
getValidationErrors in interface com.tbf.xml.Validateablepublic java.util.Vector getValidationErrors(boolean return_on_error)
getValidationErrors in interface com.tbf.xml.Validateable
public java.util.Vector getValidationErrors(boolean return_on_error,
boolean traverse)
getValidationErrors in interface com.tbf.xml.Validateable
public static boolean matches(com.tbf.xml.XmlElement xml,
com.tbf.xml.XmlObject parent)
public static Field unmarshal(java.io.InputStream in)
throws java.lang.Exception
public void fromXml(com.tbf.xml.XmlElement xml)
unmarshal(XmlElement).
fromXml in interface com.tbf.xml.XmlObjectpublic void unmarshal(com.tbf.xml.XmlElement xml)
unmarshal in interface com.tbf.xml.XmlObjectprotected void unmarshalAttributes(com.tbf.xml.XmlElement xml)
xml - the XmlElement holding the parsed XMLpublic void toXml(java.io.OutputStream stream)
marshal(XmlOutputStream) or marshal(OutputStream).
toXml in interface com.tbf.xml.XmlObjectstream - the OutputStream to write the XML object to
public void toXml(java.io.OutputStream stream,
boolean embed_files)
marshal(XmlOutputStream) or marshal(OutputStream).
toXml in interface com.tbf.xml.XmlObjectstream - the OutputStream to write the XML object toembed_files - set to true to embed files in the XML
public void toXml(java.io.OutputStream stream,
java.lang.String indent,
boolean embed_files)
marshal(XmlOutputStream) or marshal(OutputStream).
toXml in interface com.tbf.xml.XmlObjectstream - the OutputStream to write the XML object toembed_files - set to true to embed files in the XMLpublic void marshal(java.io.OutputStream stream)
marshal in interface com.tbf.xml.XmlObjectstream - the OutputStream to write the XML object tomarshal(XmlOutputStream)public void marshal(com.tbf.xml.XmlOutputStream out)
marshal in interface com.tbf.xml.XmlObjectout - the XmlOutputStream to write the XML object tomarshal(OutputStream)protected com.tbf.xml.XmlAttributeList marshalAttributes(com.tbf.xml.XmlAttributeList attrs)
attrs - the currently populated XmlAttributeList.public com.tbf.xml.XmlObject get$Parent()
get$Parent in interface com.tbf.xml.XmlObjectpublic void set$Parent(com.tbf.xml.XmlObject parent)
set$Parent in interface com.tbf.xml.XmlObjectpublic com.tbf.xml.XmlNamespaceManager get$NamespaceManager()
XmlNamespaceManager for this class.
This will be null if no namespaces on this class or if
namespace support is disabled during code generation.get$NamespaceManager in interface com.tbf.xml.XmlObjectpublic java.util.Vector get$DocumentNamespaces()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||