Class HeaderAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<SclRootAdapter,THeader>
org.lfenergy.compas.sct.commons.scl.header.HeaderAdapter
A representation of the model object
Header.
The following features are supported:
- See Also:
-
Field Summary
FieldsFields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter -
Constructor Summary
ConstructorsConstructorDescriptionHeaderAdapter(SclRootAdapter parentAdapter, THeader currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddHistoryItem(String who, String what, String why) protected booleanCheck if node is child of the reference nodeprotected StringReturns XPath path to current elementReturns the value of the id attribute.Returns the value of the Revision attribute.Returns the value of the Version attribute.Returns the value of the History containment reference list.voidupdateRevision(String hRevision) Update the value of the Revision attributevoidupdateVersion(String hVersion) Update the value of the Version attributeMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
-
Field Details
-
DEFAULT_TOOL_ID
The default value of theToolIDattribute.- See Also:
-
-
Constructor Details
-
HeaderAdapter
Constructor- Parameters:
parentAdapter- Parent container referencecurrentElem- Current reference
-
-
Method Details
-
amChildElementRef
protected boolean amChildElementRef()Description copied from class:SclElementAdapterCheck if node is child of the reference node- Specified by:
amChildElementRefin classSclElementAdapter<SclRootAdapter,THeader> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapterReturns XPath path to current element- Specified by:
elementXPathin classSclElementAdapter<SclRootAdapter,THeader> - Returns:
- message as undefined
-
addHistoryItem
- Parameters:
who- inputwhat- inputwhy- input- Returns:
HeaderAdapter- See Also:
-
getHeaderId
Returns the value of the id attribute.- Returns:
- the value of the id attribute.
-
getHeaderRevision
Returns the value of the Revision attribute.- Returns:
- the value of the Revision attribute.
-
getHeaderVersion
Returns the value of the Version attribute.- Returns:
- the value of the Version attribute.
-
getHistoryItems
Returns the value of the History containment reference list. The list contents are of typeTHitem.- Returns:
- the value of the History containment reference list.
-
updateVersion
Update the value of the Version attribute- Parameters:
hVersion- input
-
updateRevision
Update the value of the Revision attribute- Parameters:
hRevision- input
-