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
Nested ClassesModifier and TypeClassDescriptionstatic classA representation of the model objectSDIAdapter.DAIAdapter. -
Field Summary
Fields inherited from class org.lfenergy.compas.sct.commons.scl.SclElementAdapter
currentElem, parentAdapter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSDIAdapter(SclElementAdapter parentAdapter, TSDI currentElem) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCheck if node is child of the reference nodeprotected StringReturns 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, setCurrentElemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
amChildElementRefin classSclElementAdapter<SclElementAdapter,TSDI> - Returns:
- link parent child existence
-
elementXPath
Description copied from class:SclElementAdapterReturns XPath path to current element- Specified by:
elementXPathin classSclElementAdapter<SclElementAdapter,TSDI> - Returns:
- message as undefined
-
getName
Description copied from interface:IDataParentAdapterGet name of the DOI or SDI- Specified by:
getNamein interfaceIDataParentAdapter- Returns:
- name of the DOI or SDI
-
getSDIOrDAI
Description copied from interface:IDataParentAdapterGet children (SDI or DAI) of this element- Specified by:
getSDIOrDAIin interfaceIDataParentAdapter- Returns:
- currentElem.getSDIOrDAI()
-
toAdapter
Description copied from interface:IDataParentAdapterConvert the given TSDI to a RootSDIAdapter or SDIAdapter The current instance must be the parent of the given childTSDI- Specified by:
toAdapterin 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:IDataParentAdapterConvert the given TDAI to a AbstractDAIAdapter The current instance must be the parent of the given childTSDI- Specified by:
toAdapterin interfaceIDataParentAdapter- Parameters:
childTDAI- child SDI to convert to an adapter- Returns:
- AbstractDAIAdapter
-