Package org.apache.sis.xml
Enum XLink.Type
- All Implemented Interfaces:
Serializable
,Comparable<XLink.Type>
,java.lang.constant.Constable
- Enclosing class:
XLink
The type of a
xlink
. This type can be determined from the set of non-null
attribute values in a XLink
instance.- Since:
- 0.3
- Version:
- 0.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA traversal rule between resources.A special value for computing the type automatically from theXLink
attributes.An extended, possibly multi-resource, link.A pointer to an external resource.An internal resource.A simple link.A descriptive title for another linking element. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Type
(int mask, int mandatory) Creates a new type which allows the fields specified by the given mask. -
Method Summary
Modifier and TypeMethodDescription(package private) final String
Returns the attribute name for this type.static XLink.Type
Returns the enum constant of this type with the specified name.static XLink.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
-
EXTENDED
-
LOCATOR
-
RESOURCE
-
ARC
-
TITLE
A descriptive title for another linking element. -
AUTO
-
-
Field Details
-
fieldMask
final int fieldMaskA bitmask which specified the non-null fields expected for a given type. The bit values are:type
: 0x1href
: 0x2role
: 0x4arcrole
: 0x8title
: 0x10show
: 0x20actuate
: 0x40label
: 0x80from
: 0x100to
: 0x200
-
mandatory
final int mandatoryA bitmask which specified the non-null fields expected for a given type. The bit values are:type
: 0x1href
: 0x2role
: 0x4arcrole
: 0x8title
: 0x10show
: 0x20actuate
: 0x40label
: 0x80from
: 0x100to
: 0x200
-
-
Constructor Details
-
Type
private Type(int mask, int mandatory) Creates a new type which allows the fields specified by the given mask.
-
-
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
-
identifier
Returns the attribute name for this type.
-