|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DomPointerFlag> sk.uniba.euromath.document.DomPointerFlag
public enum DomPointerFlag
Attributes for the DomPointer
class.
Enum Constant Summary | |
---|---|
InsertElement
States that there must be some element insertable at returned pointer. |
|
InsertText
States that there must be some text insertable at returned pointer. |
|
NotEntityReference
States that returned pointer must not have pointsTo
containing an entity reference node. |
|
NotIntoEntity
If specified, then getNext and getPrevious
can not return pointer having inEntity equal to true. |
|
NotNullParentElement
States that the pointer returned must not have parentElement null . |
|
PointToContent
States that the pointer must have pointsTo pointing to a
regular element or a text/cdata node. |
|
PointToElement
States that returned pointer must have pointsTo pointing
to a regular element. |
|
PointToNode
States that returned pointer must have pointsTo pointing
to a non- null node. |
|
PointToText
States that returned pointer must have pointsTo pointing
to a text (or cdata) node. |
Method Summary | |
---|---|
abstract boolean |
complies(DomPointer ptr)
Checks if given pointer complies the flag. |
static boolean |
complies(DomPointer ptr,
EnumSet<DomPointerFlag> flags)
Checks if the pointer complies all defined flags (for behaviour when both PointToText and PointToElement flags are
specified please see their specification). |
static DomPointerFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DomPointerFlag[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DomPointerFlag InsertText
AnyString
, you
should consult with document schema for additional type specification.
public static final DomPointerFlag InsertElement
public static final DomPointerFlag PointToNode
pointsTo
pointing
to a non- null
node. Then, in pointsToId
is
id of this node.
public static final DomPointerFlag PointToText
States that returned pointer must have pointsTo
pointing
to a text (or cdata) node. Then, in pointsToId
is id of
this node. This flag implies the PTR_POINT_TO_NODE
flag.
Warning: It should not be used in combination with
PTR_POINT_TO_ELEMENT
: no DOM pointer can point to text
AND element at the same time.
public static final DomPointerFlag PointToElement
States that returned pointer must have pointsTo
pointing
to a regular element. Then, in pointsToId
is id of this
element. This flag implies the PTR_POINT_TO_NODE
flag.
Warning: It should not be used in combination with
PTR_POINT_TO_TEXT
: no DOM pointer can point to text AND
element at the same time.
public static final DomPointerFlag PointToContent
pointsTo
pointing to a
regular element or a text/cdata node. In other words, pointer must comply
PointToText
OR PointToElement
flags.
public static final DomPointerFlag NotIntoEntity
getNext
and getPrevious
can not return pointer having inEntity
equal to true.
public static final DomPointerFlag NotEntityReference
pointsTo
containing an entity reference node. This does not prevent
getNext()
and getPrevious()
to go into
entity contents if the IntoEntity
is specified.
public static final DomPointerFlag NotNullParentElement
parentElement
null
.
Method Detail |
---|
public static final DomPointerFlag[] values()
for(DomPointerFlag c : DomPointerFlag.values()) System.out.println(c);
public static DomPointerFlag valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic abstract boolean complies(DomPointer ptr)
ptr
- pointer to check.
true
if the pointer complies to the flag,
false
otherwise.public static boolean complies(DomPointer ptr, EnumSet<DomPointerFlag> flags)
PointToText
and PointToElement
flags are
specified please see their specification).
ptr
- pointer to checkflags
- set of flags
true
if the pointer complies all flags.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |