Enum YangDataStatements
- java.lang.Object
-
- java.lang.Enum<YangDataStatements>
-
- org.opendaylight.yangtools.rfc8040.model.api.YangDataStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<YangDataStatements>
,Immutable
,MutationBehaviour<Immutable>
,StatementDefinition
@NonNullByDefault public enum YangDataStatements extends Enum<YangDataStatements> implements StatementDefinition
StatementDefinition
s for statements defined by RFC8040.- Author:
- Robert Varga
-
-
Enum Constant Summary
Enum Constants Enum Constant Description YANG_DATA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ArgumentDefinition>
getArgumentDefinition()
Returns name of statement argument or null, if statement does not have argument.Class<? extends DeclaredStatement<?>>
getDeclaredRepresentationClass()
Returns class which represents declared version of statement associated with this definition.Class<? extends EffectiveStatement<?,?>>
getEffectiveRepresentationClass()
Returns class which represents derived behaviour from supplied statement.QName
getStatementName()
Returns name of the statement.static YangDataStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static YangDataStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YANG_DATA
public static final YangDataStatements YANG_DATA
-
-
Method Detail
-
values
public static YangDataStatements[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (YangDataStatements c : YangDataStatements.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static YangDataStatements valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getArgumentDefinition
public Optional<ArgumentDefinition> getArgumentDefinition()
Description copied from interface:StatementDefinition
Returns name of statement argument or null, if statement does not have argument.- Specified by:
getArgumentDefinition
in interfaceStatementDefinition
- Returns:
- argument name or null, if statement does not take argument.
-
getStatementName
public QName getStatementName()
Description copied from interface:StatementDefinition
Returns name of the statement.- Specified by:
getStatementName
in interfaceStatementDefinition
- Returns:
- Name of the statement
-
getEffectiveRepresentationClass
public Class<? extends EffectiveStatement<?,?>> getEffectiveRepresentationClass()
Description copied from interface:StatementDefinition
Returns class which represents derived behaviour from supplied statement. This class should be an interface which defines convenience access to statement properties, namespace items and substatements.- Specified by:
getEffectiveRepresentationClass
in interfaceStatementDefinition
- Returns:
- class which represents effective version of statement associated with this definition
-
getDeclaredRepresentationClass
public Class<? extends DeclaredStatement<?>> getDeclaredRepresentationClass()
Description copied from interface:StatementDefinition
Returns class which represents declared version of statement associated with this definition. This class should be an interface which provides convenience access to declared substatements.- Specified by:
getDeclaredRepresentationClass
in interfaceStatementDefinition
- Returns:
- class which represents declared version of statement associated with this definition.
-
-