cs.arizona.tau.xml
Class RepItem
java.lang.Object
cs.arizona.tau.xml.BaseItem
cs.arizona.tau.xml.RepItem
public class RepItem
- extends BaseItem
- Author:
- shailesh
Representation of an Item. Item contains its ItemIdentifier and all of its versions.
Constructor Summary |
RepItem()
|
RepItem(org.w3c.dom.Element xmlRepItemSchemaElement)
The constructor accepts the element declaration from physical annotation and creates corresponding repItem. |
RepItem(org.w3c.dom.Node repItemElement,
java.lang.String target)
Given a RepItem Element from temporal document, creates corresponding RepItem for that element. |
RepItem(RepItem repItem)
|
RepItem(java.lang.String target,
int timeDimension,
int timeRepresentation)
|
Methods inherited from class cs.arizona.tau.xml.BaseItem |
addVersion, addVersionAll, clearVersions, createRefElement, getItemID, getSnapshot, getTarget, getTemporalElement, getVersion, getVersionCount, getVersionElement, getVersionIterator, getVersions, merge, removeVersion, setItemID, setTarget |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RepItem
public RepItem()
RepItem
public RepItem(RepItem repItem)
RepItem
public RepItem(java.lang.String target,
int timeDimension,
int timeRepresentation)
RepItem
public RepItem(org.w3c.dom.Element xmlRepItemSchemaElement)
- The constructor accepts the element declaration from physical annotation and creates corresponding repItem.
There are no versions present in such RepItem.
- Parameters:
e
-
RepItem
public RepItem(org.w3c.dom.Node repItemElement,
java.lang.String target)
- Given a RepItem Element from temporal document, creates corresponding RepItem for that element.
- Parameters:
repItemElement
- target
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getTimeDimension
public int getTimeDimension()
- Overrides:
getTimeDimension
in class BaseItem
- Returns:
- Returns the timeDimension.
setTimeDimension
public void setTimeDimension(int timeDimension)
- Overrides:
setTimeDimension
in class BaseItem
- Parameters:
timeDimension
- The timeDimension to set.
getTimeRepresentation
public int getTimeRepresentation()
- Returns:
- Returns the timeRepresentation.
setTimeRepresentation
public void setTimeRepresentation(int timeRepresentation)
- Parameters:
timeRepresentation
- The timeRepresentation to set.
toXML
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
java.lang.String repSchemaNameAlias)
- Given a document, the function creates a <_RepItem> element from given repItem and return it.
- Parameters:
doc
-
- Returns:
chopVersions
public void chopVersions(ITimePeriod tp)