Interface AnnotationSchemaNode
- All Superinterfaces:
org.opendaylight.yangtools.yang.model.api.AddedByUsesAware,org.opendaylight.yangtools.yang.model.api.CopyableNode,org.opendaylight.yangtools.yang.model.api.DocumentedNode,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus,org.opendaylight.yangtools.yang.model.api.EffectiveStatementEquivalent<org.opendaylight.yangtools.yang.model.api.stmt.UnknownEffectiveStatement<?,,?>> org.opendaylight.yangtools.yang.model.api.SchemaNode,org.opendaylight.yangtools.yang.model.api.TypeAware,org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode
@Beta
public interface AnnotationSchemaNode
extends org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode, org.opendaylight.yangtools.yang.model.api.TypeAware
Represents the effect of 'annotation' extension, as defined in
RFC7952, being attached to a SchemaNode.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional<AnnotationSchemaNode>find(org.opendaylight.yangtools.yang.model.api.SchemaContext context, AnnotationName name) Find specified annotation if it is supported by the specified SchemaContext.static @NonNull Map<AnnotationName,AnnotationSchemaNode> findAll(org.opendaylight.yangtools.yang.model.api.SchemaContext context) Find all annotations supported by a SchemaContext.default QNamegetQName()default @NonNull AnnotationNamename()Methods inherited from interface org.opendaylight.yangtools.yang.model.api.AddedByUsesAware
isAddedByUsesMethods inherited from interface org.opendaylight.yangtools.yang.model.api.CopyableNode
isAugmentingMethods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodesMethods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
getStatusMethods inherited from interface org.opendaylight.yangtools.yang.model.api.TypeAware
getTypeMethods inherited from interface org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode
getNodeParameter, getNodeType
-
Method Details
-
find
static @NonNull Optional<AnnotationSchemaNode> find(org.opendaylight.yangtools.yang.model.api.SchemaContext context, AnnotationName name) Find specified annotation if it is supported by the specified SchemaContext.- Parameters:
context- SchemaContext to searchname- Annotation name- Returns:
AnnotationSchemaNodecorresponding to specified name, or empty if it is not supported by the SchemaContext..- Throws:
NullPointerException- if any of the arguments is null
-
findAll
static @NonNull Map<AnnotationName,AnnotationSchemaNode> findAll(org.opendaylight.yangtools.yang.model.api.SchemaContext context) Find all annotations supported by a SchemaContext.- Parameters:
context- SchemaContext to search- Returns:
AnnotationSchemaNodes supported by the SchemaContext..- Throws:
NullPointerException- if context is null
-
name
-
getQName
- Specified by:
getQNamein interfaceorg.opendaylight.yangtools.yang.model.api.SchemaNode
-
asEffectiveStatement
AnnotationEffectiveStatement asEffectiveStatement()- Specified by:
asEffectiveStatementin interfaceorg.opendaylight.yangtools.yang.model.api.EffectiveStatementEquivalent<org.opendaylight.yangtools.yang.model.api.stmt.UnknownEffectiveStatement<?,?>>
-