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
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ConstructorDescriptionHeaderAdapter
(SclRootAdapter parentAdapter, THeader currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddHistoryItem
(String who, String what, String why) protected boolean
Check if node is child of the reference nodeprotected String
Returns 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.void
updateRevision
(String hRevision) Update the value of the Revision attributevoid
updateVersion
(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 theToolID
attribute.- See Also:
-
-
Constructor Details
-
HeaderAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
-
Method Details
-
amChildElementRef
protected boolean amChildElementRef()Description copied from class:SclElementAdapter
Check if node is child of the reference node- Specified by:
amChildElementRef
in classSclElementAdapter<SclRootAdapter,
THeader> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapter
Returns XPath path to current element- Specified by:
elementXPath
in 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
-