Package org.apache.sis.xml
Enum XLink.Type
- Object
-
- Enum<XLink.Type>
-
- Type
-
- All Implemented Interfaces:
Serializable
,Comparable<XLink.Type>
- Enclosing class:
- XLink
public static enum XLink.Type extends Enum<XLink.Type>
The type of axlink
. This type can be determined from the set of non-null attribute values in aXLink
instance.- Since:
- 0.3
- See Also:
XLink.getType()
Defined in the
sis-metadata
module
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARC
A traversal rule between resources.AUTO
A special value for computing the type automatically from theXLink
attributes.EXTENDED
An extended, possibly multi-resource, link.LOCATOR
A pointer to an external resource.RESOURCE
An internal resource.SIMPLE
A simple link.TITLE
A descriptive title for another linking element.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XLink.Type
valueOf(String name)
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 Detail
-
SIMPLE
public static final XLink.Type SIMPLE
-
EXTENDED
public static final XLink.Type EXTENDED
-
LOCATOR
public static final XLink.Type LOCATOR
-
RESOURCE
public static final XLink.Type RESOURCE
-
ARC
public static final XLink.Type ARC
-
TITLE
public static final XLink.Type TITLE
A descriptive title for another linking element.
-
AUTO
public static final XLink.Type AUTO
-
-
Method Detail
-
values
public static XLink.Type[] 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 (XLink.Type c : XLink.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XLink.Type 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
-
-