Class SclElementAdapter<P extends SclElementAdapter,T>
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<P,T>
- Direct Known Subclasses:
AbstractDAIAdapter
,AbstractDataAttributeAdapter
,AbstractDataTypeAdapter
,AbstractLNAdapter
,AccessPointAdapter
,BayAdapter
,CommunicationAdapter
,ConnectedAPAdapter
,ControlBlockAdapter
,DataSetAdapter
,DataTypeTemplateAdapter
,DOAdapter
,DOIAdapter
,FunctionAdapter
,HeaderAdapter
,IEDAdapter
,InputsAdapter
,LDeviceAdapter
,LNodeAdapter
,LNodeTypeAdapter
,RootSDIAdapter
,SclRootAdapter
,SDIAdapter
,SubNetworkAdapter
,SubstationAdapter
,VoltageLevelAdapter
A representation of the model object
SclElementAdapter
.
The following features are supported:
- Adapter
Returns the value of the SclElementAdapter parent reference object
Returns the value of the SclElementAdapter current reference object
- Principal functions
- Checklist functions
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SclElementAdapter
(P parentAdapter) Constructorprotected
SclElementAdapter
(P parentAdapter, T currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrivate
(TPrivate tPrivate) Adds Private to current elementprotected abstract boolean
Check if node is child of the reference nodeprotected boolean
Check if node is root in SCLbuildFatalReportItem
(String message) builds message with message content and currentElement xpathprotected void
protected abstract String
Returns XPath path to current elementgetXPath()
Gets XPath path to current element from parent elementfinal void
setCurrentElem
(T currentElem) Sets current element
-
Field Details
-
parentAdapter
-
currentElem
-
-
Constructor Details
-
SclElementAdapter
Constructor- Parameters:
parentAdapter
- Parent container reference
-
SclElementAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
-
Method Details
-
amRootElement
protected boolean amRootElement()Check if node is root in SCL- Returns:
- true if root node of SCL and false if not
-
elementXPath
Returns XPath path to current element- Returns:
- message as undefined
-
customInit
protected void customInit() -
setCurrentElem
Sets current element- Parameters:
currentElem
- new value of current element
-
amChildElementRef
protected abstract boolean amChildElementRef()Check if node is child of the reference node- Returns:
- link parent child existence
-
addPrivate
Adds Private to current element- Parameters:
tPrivate
- Private to add
-
getXPath
Gets XPath path to current element from parent element- Returns:
- path to current element
-
buildFatalReportItem
builds message with message content and currentElement xpath- Parameters:
message
- message- Returns:
- error description with message and current element xpath
-