Class AbstractDataAttributeAdapter<P extends SclElementAdapter,T extends TAbstractDataAttribute>

java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<P,T>
org.lfenergy.compas.sct.commons.scl.dtt.AbstractDataAttributeAdapter<P,T>
All Implemented Interfaces:
IDataTemplate, IDTTComparable<T>
Direct Known Subclasses:
DAAdapter, DATypeAdapter.BDAAdapter

public abstract class AbstractDataAttributeAdapter<P extends SclElementAdapter,T extends TAbstractDataAttribute> extends SclElementAdapter<P,T> implements IDataTemplate, IDTTComparable<T>
A representation of the model object AbstractDataAttributeAdapter.

The following features are supported:

  1. Adapter
  2. Principal functions
  3. Checklist functions
See Also:
  • Field Details

    • tail

      protected final boolean tail
  • Constructor Details

    • AbstractDataAttributeAdapter

      protected AbstractDataAttributeAdapter(P parentAdapter, T currentElem)
      Constructor
      Parameters:
      parentAdapter - Parent container reference
      currentElem - Current reference
  • Method Details

    • getType

      public String getType()
      Gets Type
      Returns:
      Type
    • getBType

      public TPredefinedBasicTypeEnum getBType()
      Gets Basic Type
      Returns:
      Basic Type enum value
    • getName

      public String getName()
      Gets Name
      Returns:
      Name
    • getDATypeAdapter

      public Optional<DATypeAdapter> getDATypeAdapter()
      Gets DATypeAdapter
      Returns:
      DATypeAdapter object
    • hasSameContentAs

      public boolean hasSameContentAs(T data)
      Cheeks if DataAttributes have the same contents
      Specified by:
      hasSameContentAs in interface IDTTComparable<P extends SclElementAdapter>
      Parameters:
      data - input
      Returns:
      Equality state
    • getDataTypeTemplateAdapter

      public DataTypeTemplateAdapter getDataTypeTemplateAdapter()
      Gets DataTypeTemplateAdapter
      Specified by:
      getDataTypeTemplateAdapter in interface IDataTemplate
      Returns:
      DataTypeTemplateAdapter object
    • check

      public void check(DaTypeName daTypeName) throws ScdException
      Updates DA Type Name
      Parameters:
      daTypeName - DA Type Name to update
      Throws:
      ScdException
    • isValImport

      public boolean isValImport()
      Checks valImport state
      Returns:
      boolean value of valImport