|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oxygenxml.validate.nvdl.ModeUsage
class ModeUsage
Stores mode usage information.
Field Summary | |
---|---|
private int |
attributeProcessing
|
(package private) Mode |
currentMode
The current mode used until now. |
private Mode |
mode
The use mode. |
private ContextMap |
modeMap
Modes depending on context. |
Constructor Summary | |
---|---|
(package private) |
ModeUsage(Mode mode,
Mode currentMode)
Creates a use mode. |
private |
ModeUsage(Mode mode,
Mode currentMode,
ContextMap modeMap)
Creates a use mode. |
Method Summary | |
---|---|
(package private) boolean |
addContext(boolean isRoot,
Vector names,
Mode mode)
Adds a new context (isRoot, path --> mode). |
(package private) ModeUsage |
changeCurrentMode(Mode currentMode)
Gets a new mode usage with a different current mode but with the same mode and modeMap as this one. |
boolean |
equals(Object obj)
Check to see if this mode usage is equals with another mode usage. |
(package private) int |
getAttributeProcessing()
Get the maximum attribute processing value from the default mode and from all the modes specified in the contexts. |
(package private) Mode |
getMode(Vector context)
Get the mode to be used for a specific context. |
int |
hashCode()
Gets a hash code for this mode usage. |
(package private) boolean |
isContextDependent()
Check if we have context dependent modes. |
private Mode |
resolve(Mode mode)
Resolves the Mode.CURRENT to the currentMode for this mode usage. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Mode mode
final Mode currentMode
private ContextMap modeMap
private int attributeProcessing
Constructor Detail |
---|
ModeUsage(Mode mode, Mode currentMode)
mode
- The mode to be used.currentMode
- The mode used until the new mode.private ModeUsage(Mode mode, Mode currentMode, ContextMap modeMap)
mode
- The mode to be used.currentMode
- The mode used until now.modeMap
- Modes to be used depending on context.Method Detail |
---|
ModeUsage changeCurrentMode(Mode currentMode)
currentMode
- The new current mode.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
private Mode resolve(Mode mode)
mode
- The mode to be resolved.
int getAttributeProcessing()
boolean isContextDependent()
Mode getMode(Vector context)
context
- The current context.
boolean addContext(boolean isRoot, Vector names, Mode mode)
isRoot
- Flag indicating that the path starts or not with /names
- The local names that form the path.mode
- The mode for this path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |