cs.arizona.tau.xml
Class RepItem

java.lang.Object
  extended by cs.arizona.tau.xml.BaseItem
      extended by 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.

Field Summary
 
Fields inherited from class cs.arizona.tau.xml.BaseItem
CONTENT_CONSTANT, CONTENT_VARYING, EXISTENCE_CONSTANT, EXISTENCE_VARYING_WITH_GAPS, EXISTENCE_VARYING_WITHOUT_GAPS, KIND_EVENT, KIND_STATE
 
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)
           
 
Method Summary
 void chopVersions(ITimePeriod tp)
           
 int getTimeDimension()
           
 int getTimeRepresentation()
           
 void setTimeDimension(int timeDimension)
           
 void setTimeRepresentation(int timeRepresentation)
           
 java.lang.String toString()
           
 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.
 
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
 

Constructor Detail

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 -
Method Detail

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)