Package com.sun.xml.bind.v2.model.core
Enum PropertyKind
- All Implemented Interfaces:
Serializable
,Comparable<PropertyKind>
,java.lang.constant.Constable
An Enum that indicates if the property is
Element, ElementRef, Value, or Attribute.
Corresponds to the four different kind of PropertyInfo
.
- Author:
- Bhakti Mehta (bhakti.mehta@sun.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
This kind of property can haveXmlMimeType
andXmlInlineBinaryData
annotation with it.final boolean
This kind of properties need to show up inXmlType.propOrder()
.final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyKind
Returns the enum constant of this type with the specified name.static PropertyKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VALUE
-
ATTRIBUTE
-
ELEMENT
-
REFERENCE
-
MAP
-
-
Field Details
-
canHaveXmlMimeType
public final boolean canHaveXmlMimeTypeThis kind of property can haveXmlMimeType
andXmlInlineBinaryData
annotation with it. -
isOrdered
public final boolean isOrderedThis kind of properties need to show up inXmlType.propOrder()
. -
propertyIndex
public final int propertyIndex
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-