Enum AddVisitor.TargetType
- java.lang.Object
-
- java.lang.Enum<AddVisitor.TargetType>
-
- gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.TargetType
-
- All Implemented Interfaces:
Serializable
,Comparable<AddVisitor.TargetType>
- Enclosing class:
- AddVisitor
public static enum AddVisitor.TargetType extends Enum<AddVisitor.TargetType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
fieldName()
Get the field name associated with the target type.static AddVisitor.TargetType
forClass(Class<?> clazz)
Get the target type associated with the providedclazz
.static AddVisitor.TargetType
forFieldName(String name)
Get the target type associated with the provided fieldname
.Class<?>
getClazz()
Get the bound class associated with the target type.static AddVisitor.TargetType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AddVisitor.TargetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTROL
public static final AddVisitor.TargetType CONTROL
-
PARAM
public static final AddVisitor.TargetType PARAM
-
PART
public static final AddVisitor.TargetType PART
-
-
Method Detail
-
values
public static AddVisitor.TargetType[] 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 (AddVisitor.TargetType c : AddVisitor.TargetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddVisitor.TargetType 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
-
forClass
@Nullable public static AddVisitor.TargetType forClass(@NonNull Class<?> clazz)
Get the target type associated with the providedclazz
.- Parameters:
clazz
- the class to identify the target type for- Returns:
- the associated target type or
null
if the class is not associated with a target type
-
forFieldName
@Nullable public static AddVisitor.TargetType forFieldName(@Nullable String name)
Get the target type associated with the provided fieldname
.- Parameters:
name
- the field name to identify the target type for- Returns:
- the associated target type or
null
if the name is not associated with a target type
-
fieldName
public String fieldName()
Get the field name associated with the target type.- Returns:
- the name
-
-