Enum OpenConfigStatements
- java.lang.Object
-
- java.lang.Enum<OpenConfigStatements>
-
- org.opendaylight.yangtools.openconfig.model.api.OpenConfigStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<OpenConfigStatements>
,Immutable
,MutationBehaviour<Immutable>
,StatementDefinition
@Beta @NonNullByDefault public enum OpenConfigStatements extends Enum<OpenConfigStatements> implements StatementDefinition
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPENCONFIG_ENCRYPTED_VALUE
OPENCONFIG_HASHED_VALUE
OPENCONFIG_VERSION
-
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 OpenConfigStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static OpenConfigStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPENCONFIG_ENCRYPTED_VALUE
public static final OpenConfigStatements OPENCONFIG_ENCRYPTED_VALUE
-
OPENCONFIG_HASHED_VALUE
public static final OpenConfigStatements OPENCONFIG_HASHED_VALUE
-
OPENCONFIG_VERSION
public static final OpenConfigStatements OPENCONFIG_VERSION
-
-
Method Detail
-
values
public static OpenConfigStatements[] 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 (OpenConfigStatements c : OpenConfigStatements.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenConfigStatements 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
-
getStatementName
public QName getStatementName()
Description copied from interface:StatementDefinition
Returns name of the statement.- Specified by:
getStatementName
in interfaceStatementDefinition
- Returns:
- Name of the statement
-
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.
-
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.
-
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
-
-