|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The VersionedElement interface represents an element in sequenced mode which may have multiple versions in the different sub-periods of the period of applicability. A version of an element denotes a form of its content. The content of an element in sequenced mode may change over time, so it may have multiple versions in different periods. in sequenced
Field Summary |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Method Summary | |
void |
addVersion(org.w3c.dom.Element version,
Period ts)
Add a version valid in the specified period. |
org.w3c.dom.Node |
getNextSiblingInParentVersion(int index)
Return the next sibling of this element in its parent's indexth version. |
int |
getNumVersion()
Return the number of versions of this element. |
org.w3c.dom.Node |
getPreviousSiblingInParentVersion(int index)
Return the previous sibling of this element in its parent's indexth version. |
PeriodSet |
getValidTimeStamp()
Return the periods in which the element is valid. |
PeriodSet |
getValidTimeStampOfVersion(int index)
Return the valid periods of the indexth version. |
org.w3c.dom.Element |
getVersion(int index)
Return the indexth version of the element. |
boolean |
hasSeqAttribute(java.lang.String name)
Test if the element has an attribute with the given name at sometime within the period of applicability. |
Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Method Detail |
public PeriodSet getValidTimeStamp()
public int getNumVersion()
public org.w3c.dom.Element getVersion(int index) throws TDOMException
index
- the index of the wanted version.
TDOMException
- Throw TDOMException with exception code INVALID_INDEX
if the index is out of range.public PeriodSet getValidTimeStampOfVersion(int index)
index
- the index of the wanted version.
public org.w3c.dom.Node getPreviousSiblingInParentVersion(int index) throws TDOMException
index
- the index of its parent's version.
TDOMException
- Throw TDOMException with exception code INVALID_INDEX
if the index is out of range.public org.w3c.dom.Node getNextSiblingInParentVersion(int index) throws TDOMException
index
- the index of its parent's version.
TDOMException
- Throw TDOMException with exception code INVALID_INDEX
if the index is out of range.public void addVersion(org.w3c.dom.Element version, Period ts)
version
- an element instance representing the new version.ts
- the valid period of this version.public boolean hasSeqAttribute(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |