Class DataSetAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TDataSet>
org.lfenergy.compas.sct.commons.scl.ied.DataSetAdapter
A representation of the model object
DataSetAdapter
.
The following features are supported:
- See Also:
-
TLN0
AbstractLNAdapter
-
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ConstructorDescriptionDataSetAdapter
(AbstractLNAdapter<? extends TAnyLN> parentAdapter, TDataSet dataSet) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Check if node is child of the reference nodecreateFCDAIfNotExists
(String ldInst, String prefix, String lnClass, String lnInst, String doName, String daName, TFCEnum fc) Create a new FCDA in this DataSet.protected String
Returns local XPathfindFCDA
(String ldInst, String prefix, String lnClass, String lnInst, String doName, String daName, TFCEnum fc) Find a FCDA matching all given criteria.Methods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
-
Constructor Details
-
DataSetAdapter
-
-
Method Details
-
amChildElementRef
protected boolean amChildElementRef()Check if node is child of the reference node- Specified by:
amChildElementRef
in classSclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,
TDataSet> - Returns:
- link parent child existence
-
elementXPath
Returns local XPath- Specified by:
elementXPath
in classSclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,
TDataSet> - Returns:
- XPath for current element (not including parent XPath)
-
findFCDA
public Optional<TFCDA> findFCDA(String ldInst, String prefix, String lnClass, String lnInst, String doName, String daName, TFCEnum fc) Find a FCDA matching all given criteria.- Parameters:
ldInst
- FCDA ldInst attributeprefix
- FCDA prefix attributelnClass
- FCDA lnClass attributelnInst
- FCDA lnInst attributedoName
- FCDA doName attributedaName
- FCDA daNae attributefc
- FCDA fc attribute- Returns:
- Matching FCDA in this DataSet when found, empty Optional otherwise.
-
createFCDAIfNotExists
public TFCDA createFCDAIfNotExists(String ldInst, String prefix, String lnClass, String lnInst, String doName, String daName, TFCEnum fc) Create a new FCDA in this DataSet. Does nothing if a FCDA with the given attribute already exists in this DataSet.- Parameters:
ldInst
- FCDA ldInst attributeprefix
- FCDA prefix attributelnClass
- FCDA lnClass attributelnInst
- FCDA lnInst attributedoName
- FCDA doName attributedaName
- FCDA daNae attributefc
- FCDA fc attribute- Returns:
- created FCDA, or existing FCDA with the given attributes
-