Class AbstractRefStatement<A,D extends DeclaredStatement<A>>
java.lang.Object
com.google.common.collect.ForwardingObject
org.opendaylight.yangtools.yang.model.spi.meta.ForwardingDeclaredStatement<A,D>
org.opendaylight.yangtools.yang.model.spi.meta.AbstractRefStatement<A,D>
- Type Parameters:
A
- Argument type (Empty
if statement does not have argument.)D
- Class representing declared version of this statement.
- All Implemented Interfaces:
Delegator<D>
,DeclaredStatement<A>
,ModelStatement<A>
- Direct Known Subclasses:
RefActionStatement
,RefAnydataStatement
,RefAnyxmlStatement
,RefArgumentStatement
,RefAugmentStatement
,RefBaseStatement
,RefBelongsToStatement
,RefBitsSpecification
,RefBitStatement
,RefCaseStatement
,RefChoiceStatement
,RefConfigStatement
,RefContactStatement
,RefContainerStatement
,RefDefaultStatement
,RefDescriptionStatement
,RefDeviateStatement
,RefDeviationStatement
,RefEnumStatement
,RefErrorAppTagStatement
,RefErrorMessageStatement
,RefExtensionStatement
,RefFeatureStatement
,RefFractionDigitsStatement
,RefGroupingStatement
,RefIdentityStatement
,RefIfFeatureStatement
,RefImportStatement
,RefIncludeStatement
,RefInputStatement
,RefKeyStatement
,RefLeafListStatement
,RefLeafStatement
,RefLengthStatement
,RefListStatement
,RefMandatoryStatement
,RefMaxElementsStatement
,RefMinElementsStatement
,RefModifierStatement
,RefModuleStatement
,RefMustStatement
,RefNamespaceStatement
,RefNotificationStatement
,RefOrderedByStatement
,RefOrganizationStatement
,RefOutputStatement
,RefPathStatement
,RefPatternStatement
,RefPositionStatement
,RefPrefixStatement
,RefPresenceStatement
,RefRangeStatement
,RefReferenceStatement
,RefRefineStatement
,RefRequireInstanceStatement
,RefRevisionDateStatement
,RefRevisionStatement
,RefRpcStatement
,RefStatusStatement
,RefSubmoduleStatement
,RefTypedefStatement
,RefTypeStatement
,RefUniqueStatement
,RefUnitsStatement
,RefUnrecognizedStatement
,RefUsesStatement
,RefValueStatement
,RefWhenStatement
,RefYangVersionStatement
,RefYinElementStatement
public abstract class AbstractRefStatement<A,D extends DeclaredStatement<A>>
extends ForwardingDeclaredStatement<A,D>
implements Delegator<D>
Abstract base class for
DeclaredStatement
implementations which decorate a statement with a
DeclarationReference
.-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRefStatement
(D delegate, DeclarationReference ref) -
Method Summary
Modifier and TypeMethodDescriptionfinal Optional
<DeclarationReference> Returns aDeclarationReference
associated with this statement, if available.protected final D
delegate()
final D
Return underlying delegate.Methods inherited from class org.opendaylight.yangtools.yang.model.spi.meta.ForwardingDeclaredStatement
argument, declaredSubstatements, rawArgument, statementDefinition
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement
declaredSubstatements, findFirstDeclaredSubstatement, findFirstDeclaredSubstatementArgument, streamDeclaredSubstatements
-
Constructor Details
-
AbstractRefStatement
-
-
Method Details
-
declarationReference
Description copied from interface:DeclaredStatement
Returns aDeclarationReference
associated with this statement, if available.- Specified by:
declarationReference
in interfaceDeclaredStatement<A>
- Overrides:
declarationReference
in classForwardingDeclaredStatement<A,
D extends DeclaredStatement<A>> - Returns:
- A
DeclarationReference
associated with this statement orOptional.empty()
.
-
getDelegate
Description copied from interface:Delegator
Return underlying delegate.- Specified by:
getDelegate
in interfaceDelegator<A>
- Returns:
- underlying delegate.
-
delegate
- Specified by:
delegate
in classForwardingDeclaredStatement<A,
D extends DeclaredStatement<A>>
-