Enum RemoveVisitor.TargetType
- java.lang.Object
-
- java.lang.Enum<RemoveVisitor.TargetType>
-
- gov.nist.secauto.oscal.lib.profile.resolver.alter.RemoveVisitor.TargetType
-
- All Implemented Interfaces:
Serializable
,Comparable<RemoveVisitor.TargetType>
- Enclosing class:
- RemoveVisitor
public static enum RemoveVisitor.TargetType extends Enum<RemoveVisitor.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 RemoveVisitor.TargetType
forClass(Class<?> clazz)
Get the target type associated with the providedclazz
.static RemoveVisitor.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 RemoveVisitor.TargetType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RemoveVisitor.TargetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARAM
public static final RemoveVisitor.TargetType PARAM
-
PROP
public static final RemoveVisitor.TargetType PROP
-
LINK
public static final RemoveVisitor.TargetType LINK
-
PART
public static final RemoveVisitor.TargetType PART
-
-
Method Detail
-
values
public static RemoveVisitor.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 (RemoveVisitor.TargetType c : RemoveVisitor.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 RemoveVisitor.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 RemoveVisitor.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 RemoveVisitor.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
-
-