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:
- Adapter
- Principal functions
- Checklist functions
-
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDataAttributeAdapter
(P parentAdapter, T currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(DaTypeName daTypeName) Updates DA Type NamegetBType()
Gets Basic TypeGets DataTypeTemplateAdapterGets DATypeAdaptergetName()
Gets NamegetType()
Gets Typeboolean
hasSameContentAs
(T data) Cheeks if DataAttributes have the same contentsboolean
Checks valImport stateMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amChildElementRef, amRootElement, buildFatalReportItem, customInit, elementXPath, getXPath, setCurrentElem
-
Field Details
-
tail
protected final boolean tail
-
-
Constructor Details
-
AbstractDataAttributeAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
-
Method Details
-
getType
Gets Type- Returns:
- Type
-
getBType
Gets Basic Type- Returns:
- Basic Type enum value
-
getName
Gets Name- Returns:
- Name
-
getDATypeAdapter
Gets DATypeAdapter- Returns:
- DATypeAdapter object
-
hasSameContentAs
Cheeks if DataAttributes have the same contents- Specified by:
hasSameContentAs
in interfaceIDTTComparable<P extends SclElementAdapter>
- Parameters:
data
- input- Returns:
- Equality state
-
getDataTypeTemplateAdapter
Gets DataTypeTemplateAdapter- Specified by:
getDataTypeTemplateAdapter
in interfaceIDataTemplate
- Returns:
- DataTypeTemplateAdapter object
-
check
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
-