Class SDIAdapter
java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<SclElementAdapter,TSDI>
org.lfenergy.compas.sct.commons.scl.ied.SDIAdapter
- All Implemented Interfaces:
IDataAdapter
,IDataParentAdapter
public class SDIAdapter
extends SclElementAdapter<SclElementAdapter,TSDI>
implements IDataParentAdapter
A representation of the model object
DOIAdapter
.
The following features are supported:
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A representation of the model objectSDIAdapter.DAIAdapter
. -
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter
-
Constructor Summary
ModifierConstructorDescriptionprotected
SDIAdapter
(SclElementAdapter parentAdapter, TSDI currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Check if node is child of the reference nodeprotected String
Returns XPath path to current elementgetName()
Get name of the DOI or SDIGet children (SDI or DAI) of this elementConvert the given TDAI to a AbstractDAIAdapter The current instance must be the parent of the given childTSDIConvert the given TSDI to a RootSDIAdapter or SDIAdapter The current instance must be the parent of the given childTSDIMethods inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
addPrivate, amRootElement, buildFatalReportItem, customInit, getXPath, setCurrentElem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lfenergy.compas.sct.commons.scl.ied.IDataParentAdapter
addDAI, addSDOI, findDataAdapterByName, findDeepestMatch, findStructuredDataAdapterByName, getDataAdapterByName, getStructuredDataAdapterByName
-
Constructor Details
-
SDIAdapter
Constructor- Parameters:
parentAdapter
- Parent container referencecurrentElem
- Current reference
-
-
Method Details
-
amChildElementRef
protected boolean amChildElementRef()Check if node is child of the reference node- Specified by:
amChildElementRef
in classSclElementAdapter<SclElementAdapter,
TSDI> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapter
Returns XPath path to current element- Specified by:
elementXPath
in classSclElementAdapter<SclElementAdapter,
TSDI> - Returns:
- message as undefined
-
getName
Description copied from interface:IDataParentAdapter
Get name of the DOI or SDI- Specified by:
getName
in interfaceIDataParentAdapter
- Returns:
- name of the DOI or SDI
-
getSDIOrDAI
Description copied from interface:IDataParentAdapter
Get children (SDI or DAI) of this element- Specified by:
getSDIOrDAI
in interfaceIDataParentAdapter
- Returns:
- currentElem.getSDIOrDAI()
-
toAdapter
Description copied from interface:IDataParentAdapter
Convert the given TSDI to a RootSDIAdapter or SDIAdapter The current instance must be the parent of the given childTSDI- Specified by:
toAdapter
in interfaceIDataParentAdapter
- Parameters:
childTSDI
- child SDI to convert to an adapter- Returns:
- RootSDIAdapter when current instance is a DOI or SDIAdapter otherwise
-
toAdapter
Description copied from interface:IDataParentAdapter
Convert the given TDAI to a AbstractDAIAdapter The current instance must be the parent of the given childTSDI- Specified by:
toAdapter
in interfaceIDataParentAdapter
- Parameters:
childTDAI
- child SDI to convert to an adapter- Returns:
- AbstractDAIAdapter
-