Class DataSetAdapter

java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TDataSet>
org.lfenergy.compas.sct.commons.scl.ied.DataSetAdapter

public class DataSetAdapter extends SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TDataSet>
See Also:
  • Constructor Details

  • Method Details

    • amChildElementRef

      protected boolean amChildElementRef()
      Check if node is child of the reference node
      Specified by:
      amChildElementRef in class SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TDataSet>
      Returns:
      link parent child existence
    • elementXPath

      protected String elementXPath()
      Returns local XPath
      Specified by:
      elementXPath in class SclElementAdapter<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 attribute
      prefix - FCDA prefix attribute
      lnClass - FCDA lnClass attribute
      lnInst - FCDA lnInst attribute
      doName - FCDA doName attribute
      daName - FCDA daNae attribute
      fc - 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 attribute
      prefix - FCDA prefix attribute
      lnClass - FCDA lnClass attribute
      lnInst - FCDA lnInst attribute
      doName - FCDA doName attribute
      daName - FCDA daNae attribute
      fc - FCDA fc attribute
      Returns:
      created FCDA, or existing FCDA with the given attributes