|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--VOTableUtil.Votable
Votable class.
| Field Summary | |
protected Definitions |
_Definitions
|
protected static com.tbf.xml.XmlValidator |
_Definitions_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 |
_Info
|
protected static com.tbf.xml.XmlValidator |
_Info_validator_
|
protected static com.tbf.xml.XmlNamespaceManager |
_nsm_
The default XmlNamespaceManager for this class. |
protected java.util.Vector |
_Resource
|
protected static com.tbf.xml.XmlValidator |
_Resource_validator_
|
protected java.util.Vector |
_unexpected_xml_errors_
Storage for UNEXPECTED_XML errors. |
protected static boolean |
_validators_created
This flag is used to used to check whether the validators have been created. |
protected java.lang.String |
_Version
|
static java.lang.String |
$DEFINITIONS
Constant for "DEFINITIONS" node name. |
static java.lang.String |
$DESCRIPTION
Constant for "DESCRIPTION" node name. |
static java.lang.String |
$ID
Constant for "ID" node name. |
static java.lang.String |
$INFO
Constant for "INFO" node name. |
static java.lang.String |
$RESOURCE
Constant for "RESOURCE" node name. |
static java.lang.String |
$VERSION
Constant for "version" node name. |
static java.lang.String |
$VOTABLE
Constant for "VOTABLE" node name. |
| Constructor Summary | |
Votable()
Default no args constructor. |
|
Votable(com.tbf.xml.XmlElement xml)
Creates and populates an instance from the provided parse tree. |
|
Votable(com.tbf.xml.XmlElement xml,
com.tbf.xml.XmlObject parent)
Creates and populates an instance from the provided parse tree. |
|
| Method Summary | |
void |
addInfo(Info obj)
|
void |
addResource(Resource obj)
|
protected static void |
createValidators()
Create the validators for this class. |
void |
deleteDefinitions()
Discards Definitions's value. |
void |
deleteDescription()
Discards Description's value. |
void |
deleteId()
Discards Id's value. |
void |
deleteVersion()
Discards Version'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. |
static java.lang.String |
getClassXmlTagName()
Gets the XML tag name for this class. |
Definitions |
getDefinitions()
Get the Definitions property. |
java.lang.String |
getDescription()
Get the Description property. |
java.lang.String |
getId()
Get the Id property. |
java.util.Vector |
getInfo()
Get the Info property. |
Info |
getInfoAt(int index)
|
int |
getInfoCount()
Get the count of elements in the Info property. |
java.util.Vector |
getResource()
Get the Resource property. |
Resource |
getResourceAt(int index)
|
int |
getResourceCount()
Get the count of elements in the Resource 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. |
java.lang.String |
getVersion()
Get the Version property. |
java.lang.String |
getXmlTagName()
Gets the XML tag name for this object. |
boolean |
hasDefinitions()
Checks for whether Definitions 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 |
hasVersion()
Checks for whether Version 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 |
removeInfo(Info obj)
|
void |
removeInfoAt(int index)
|
void |
removeResource(Resource obj)
|
void |
removeResourceAt(int index)
|
void |
set$Parent(com.tbf.xml.XmlObject parent)
Set this object's parent object. |
void |
setDefinitions(Definitions obj)
Set the Definitions property. |
void |
setDescription(java.lang.String newValue)
Set the Description property. |
void |
setId(java.lang.String newValue)
Set the Id property. |
void |
setInfo(java.util.Vector newList)
Set the Info property. |
void |
setInfoAt(Info obj,
int index)
|
void |
setResource(java.util.Vector newList)
Set the Resource property. |
void |
setResourceAt(Resource obj,
int index)
|
void |
setVersion(java.lang.String newValue)
Set the Version 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 Votable |
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 $ID
public static final java.lang.String $DEFINITIONS
public static final java.lang.String $VERSION
public static final java.lang.String $INFO
public static final java.lang.String $DESCRIPTION
public static final java.lang.String $RESOURCE
public static final java.lang.String $VOTABLE
protected java.lang.String _Id
protected java.lang.String _Version
protected java.lang.String _Description
protected Definitions _Definitions
protected java.util.Vector _Info
protected java.util.Vector _Resource
protected transient java.util.Vector _unexpected_xml_errors_
protected static transient boolean _validators_created
protected static transient com.tbf.xml.XmlValidator _Definitions_validator_
protected static transient com.tbf.xml.XmlValidator _Info_validator_
protected static transient com.tbf.xml.XmlValidator _Resource_validator_
protected static com.tbf.xml.XmlNamespaceManager _nsm_
XmlNamespaceManager for this class.protected java.util.Vector _doc_declared_namespaces_
| Constructor Detail |
public Votable()
public Votable(com.tbf.xml.XmlElement xml)
xml - the parse tree
public Votable(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 getVersion()
public void setVersion(java.lang.String newValue)
public boolean hasVersion()
public void deleteVersion()
public java.lang.String getDescription()
public void setDescription(java.lang.String newValue)
public boolean hasDescription()
public void deleteDescription()
public Definitions getDefinitions()
public void setDefinitions(Definitions obj)
public boolean hasDefinitions()
public void deleteDefinitions()
public java.util.Vector getInfo()
public Info getInfoAt(int index)
throws java.lang.IndexOutOfBoundsException
public int getInfoCount()
public void setInfo(java.util.Vector newList)
public void addInfo(Info obj)
public void setInfoAt(Info obj,
int index)
throws java.lang.IndexOutOfBoundsException
public void removeInfo(Info obj)
public void removeInfoAt(int index)
throws java.lang.IndexOutOfBoundsException
public java.util.Vector getResource()
public Resource getResourceAt(int index)
throws java.lang.IndexOutOfBoundsException
public int getResourceCount()
public void setResource(java.util.Vector newList)
public void addResource(Resource obj)
public void setResourceAt(Resource obj,
int index)
throws java.lang.IndexOutOfBoundsException
public void removeResource(Resource obj)
public void removeResourceAt(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 Votable 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 | ||||||