|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
ObjectEnum<XLink.Type>
XLink.Type
public static enum XLink.Type
The type of a xlink. This type can be determined from the set of non-null
attribute values in a XLink instance.
XLink.getType()
| utility/geotk-xml-base (download) | View source code for this class |
| Enum Constant Summary | |
|---|---|
ARC
A traversal rule between resources. |
|
AUTO
A special value for computing the type automatically from the XLink 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 | |
|---|---|
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. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final XLink.Type SIMPLE
href, role,
arcrole, title, show and actuate attributes, all of them being optional.
public static final XLink.Type EXTENDED
role
and title attributes, all of them being optional.
public static final XLink.Type LOCATOR
href,
role, title and label attributes, where href is mandatory and all other are optional.
public static final XLink.Type RESOURCE
role, title
and label attributes, all of them being optional.
public static final XLink.Type ARC
arcrole,
title, show, actuate from and to attributes, all of them
being optional.
public static final XLink.Type TITLE
public static final XLink.Type AUTO
XLink attributes.
After a call to XLink.setType(AUTO), any call to XLink.getType() will
infer the type from the non-null attributes as according the table documented in the
XLink javadoc.
| Method Detail |
|---|
public static XLink.Type[] values()
for (XLink.Type c : XLink.Type.values()) System.out.println(c);
public static XLink.Type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||