|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oxygenxml.validate.nvdl.Mode
class Mode
Field Summary | |
---|---|
(package private) static String |
ANONYMOUS_MODE_NAME_PREFIX
Mode name prefix used for inline anonymous modes. |
(package private) static int |
anonymousModeCounter
Inline anonymous modes counter. |
(package private) static int |
ATTRIBUTE_PROCESSING_FULL
|
(package private) static int |
ATTRIBUTE_PROCESSING_NONE
|
(package private) static int |
ATTRIBUTE_PROCESSING_QUALIFIED
|
private Hashtable |
attributeMap
|
private int |
attributeProcessing
|
private Mode |
baseMode
The base mode. |
(package private) static Mode |
CURRENT
A special mode. |
private boolean |
defined
Flag indicating if this mode is defined by the user or is an automatically generated mode. |
private Hashtable |
elementMap
|
private List |
includedModes
List with included modes. |
private String |
name
The mode name. |
private Hashtable |
nssAttributeMap
|
private Hashtable |
nssElementMap
|
private Locator |
whereDefined
Locate the place where this mode is defined. |
private Locator |
whereUsed
Locate the place this mode is first used. |
Constructor Summary | |
---|---|
Mode(Mode baseMode)
Creates an anonymous mode. |
|
Mode(String name,
Mode baseMode)
Creates a mode extending a base mode. |
Method Summary | |
---|---|
(package private) void |
addIncludedMode(Mode mode)
|
(package private) boolean |
bindAttribute(String ns,
String wildcard,
AttributeActionSet actions)
Adds a set of attribute actions to be performed in this mode for attributes in a specified namespace. |
(package private) boolean |
bindElement(String ns,
String wildcard,
ActionSet actions)
Adds a set of element actions to be performed in this mode for elements in a specified namespace. |
(package private) AttributeActionSet |
getAttributeActions(String ns)
Get the set of attribute actions for a given namespace. |
private AttributeActionSet |
getAttributeActionsExplicit(String ns)
Look for attribute actions specifically specified for this namespace. |
(package private) int |
getAttributeProcessing()
Computes (if not already computed) the attributeProcessing for this mode and returns it. |
(package private) Mode |
getBaseMode()
Get the base mode. |
(package private) ActionSet |
getElementActions(String ns)
Get the set of element actions for a given namespace. |
private ActionSet |
getElementActionsExplicit(String ns)
Look for element actions specifically specified for this namespace. |
(package private) String |
getName()
Get this mode name. |
(package private) Locator |
getWhereDefined()
Get the locator that points to the place the mode is defined. |
(package private) Locator |
getWhereUsed()
Get a locator pointing to the first place this mode is used. |
(package private) boolean |
isAnonymous()
|
(package private) boolean |
isDefined()
Getter for the defined flag. |
(package private) void |
noteDefined(Locator locator)
Record the locator this mode is defined at. |
(package private) void |
noteUsed(Locator locator)
Record the locator if this is the first location this mode is used. |
(package private) void |
setBaseMode(Mode baseMode)
Set a base mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int ATTRIBUTE_PROCESSING_NONE
static final int ATTRIBUTE_PROCESSING_QUALIFIED
static final int ATTRIBUTE_PROCESSING_FULL
static final Mode CURRENT
static final String ANONYMOUS_MODE_NAME_PREFIX
static int anonymousModeCounter
private final String name
private Mode baseMode
private boolean defined
private Locator whereDefined
private Locator whereUsed
private final Hashtable elementMap
private final Hashtable attributeMap
private int attributeProcessing
private final Hashtable nssElementMap
private final Hashtable nssAttributeMap
private List includedModes
Constructor Detail |
---|
Mode(String name, Mode baseMode)
name
- The new mode name.baseMode
- The base mode.public Mode(Mode baseMode)
baseMode
- Method Detail |
---|
void addIncludedMode(Mode mode)
String getName()
Mode getBaseMode()
void setBaseMode(Mode baseMode)
baseMode
- The new base mode.ActionSet getElementActions(String ns)
ns
- The namespace we look for element actions for.
private ActionSet getElementActionsExplicit(String ns)
ns
- The namespace
AttributeActionSet getAttributeActions(String ns)
ns
- The namespace we look for attribute actions for.
private AttributeActionSet getAttributeActionsExplicit(String ns)
ns
- The namespace
int getAttributeProcessing()
Locator getWhereDefined()
boolean isDefined()
boolean isAnonymous()
Locator getWhereUsed()
void noteUsed(Locator locator)
locator
- Points to the location this mode is used from.void noteDefined(Locator locator)
locator
- Points to the mode definition.boolean bindElement(String ns, String wildcard, ActionSet actions)
ns
- The namespace pattern.wildcard
- The wildcard character.actions
- The set of element actions.
boolean bindAttribute(String ns, String wildcard, AttributeActionSet actions)
ns
- The namespace pattern.wildcard
- The wildcard character.actions
- The set of attribute actions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |