com.oxygenxml.validate.nvdl
Class ElementsOrAttributes

java.lang.Object
  extended by com.oxygenxml.validate.nvdl.ElementsOrAttributes

 class ElementsOrAttributes
extends Object

Possible values for match, that is represented as a list of elements and attributes.


Field Summary
(package private) static ElementsOrAttributes ATTRIBUTES
          Only attributes is specified.
private static int ATTRIBUTES_FLAG
          Flag for attributes.
(package private) static ElementsOrAttributes BOTH
          Bothe elements and attributes are specified.
(package private) static ElementsOrAttributes ELEMENTS
          Only elements is specified.
private static int ELEMENTS_FLAG
          Flag for elements.
private  int flags
          Stores this instance flags.
(package private) static ElementsOrAttributes NEITHER
          Neither elements nor attributes specified.
private static int NONE_FLAG
          Flag for none.
private static ElementsOrAttributes[] values
          All possible values.
 
Constructor Summary
private ElementsOrAttributes(int flags)
          Creates an instance with the given flags.
 
Method Summary
(package private)  ElementsOrAttributes addAttributes()
          Get the value after adding attributes to the current instance.
(package private)  ElementsOrAttributes addElements()
          Get the value after adding elements to the current instance.
(package private)  boolean containsAttributes()
          Checks whether the attributes are matched or not.
(package private)  boolean containsElements()
          Checks whether the elements are matched or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE_FLAG

private static final int NONE_FLAG
Flag for none.

See Also:
Constant Field Values

ELEMENTS_FLAG

private static final int ELEMENTS_FLAG
Flag for elements.

See Also:
Constant Field Values

ATTRIBUTES_FLAG

private static final int ATTRIBUTES_FLAG
Flag for attributes.

See Also:
Constant Field Values

NEITHER

static final ElementsOrAttributes NEITHER
Neither elements nor attributes specified.


ELEMENTS

static final ElementsOrAttributes ELEMENTS
Only elements is specified.


ATTRIBUTES

static final ElementsOrAttributes ATTRIBUTES
Only attributes is specified.


BOTH

static final ElementsOrAttributes BOTH
Bothe elements and attributes are specified.


values

private static final ElementsOrAttributes[] values
All possible values.


flags

private int flags
Stores this instance flags.

Constructor Detail

ElementsOrAttributes

private ElementsOrAttributes(int flags)
Creates an instance with the given flags.

Parameters:
flags -
Method Detail

addElements

ElementsOrAttributes addElements()
Get the value after adding elements to the current instance.

Returns:
The value that matches also elements.

addAttributes

ElementsOrAttributes addAttributes()
Get the value after adding attributes to the current instance.

Returns:
The value that matches also attributes.

containsAttributes

boolean containsAttributes()
Checks whether the attributes are matched or not.

Returns:
true is attributes are matched.

containsElements

boolean containsElements()
Checks whether the elements are matched or not.

Returns:
true is elements are matched.