|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oxygenxml.validate.nvdl.ValidatorImpl.Section
private class ValidatorImpl.Section
Store section information.
Field Summary | |
---|---|
(package private) Vector |
activeHandlers
List of the ContentHandlers that want to see the elements in this section |
(package private) Vector |
activeHandlersAttributeModeUsage
|
(package private) int |
attributeProcessing
Max attribute processing value from all modes in this section. |
(package private) Vector |
attributeValidationModeUsages
|
(package private) Vector |
childPrograms
List of Programs saying what to do with child sections |
(package private) Stack |
context
Keep the context stack if we have a context dependent section. |
(package private) boolean |
contextDependent
Flag indicating is this section depends on context or not. |
(package private) int |
depth
Number of open elements in this section. |
(package private) String |
ns
Namespace of this section. |
(package private) ValidatorImpl.Section |
parent
The parent section. |
(package private) Vector |
placeholderHandlers
Stores the attach placeholder handlers. |
(package private) Vector |
placeholderModeUsages
Stores the attach place holder mode usages. |
(package private) Vector |
schemas
|
(package private) Vector |
validators
List of the Validators rooted in this section |
Constructor Summary | |
---|---|
ValidatorImpl.Section(String ns,
ValidatorImpl.Section parent)
Creates a section for a given namespace and links to to its parent section. |
Method Summary | |
---|---|
void |
addActiveHandler(ContentHandler handler,
ModeUsage attributeModeUsage)
Adds a handler for a mode usage. |
void |
addAttributeValidationModeUsage(ModeUsage modeUsage)
Adds a mode usage to the attributeValidationModeUsages list if we process attributes. |
void |
addChildMode(ModeUsage modeUsage,
ContentHandler handler)
|
void |
addValidator(Schema schema,
ModeUsage modeUsage)
Adds a validator. |
void |
attachPlaceholder(ModeUsage modeUsage,
ContentHandler handler)
|
void |
reject()
Reject content, report an error. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final ValidatorImpl.Section parent
final String ns
int depth
final Vector validators
final Vector schemas
final Vector activeHandlers
final Vector activeHandlersAttributeModeUsage
final Vector attributeValidationModeUsages
final Vector childPrograms
final Stack context
boolean contextDependent
int attributeProcessing
final Vector placeholderHandlers
final Vector placeholderModeUsages
Constructor Detail |
---|
ValidatorImpl.Section(String ns, ValidatorImpl.Section parent)
ns
- The section namespace.parent
- The parent section.Method Detail |
---|
public void addChildMode(ModeUsage modeUsage, ContentHandler handler)
addChildMode
in interface SectionState
modeUsage
- The mode usage that determines the next mode.handler
- The content handler that receives notifications.public void addValidator(Schema schema, ModeUsage modeUsage)
addValidator
in interface SectionState
schema
- The schema to validate against.modeUsage
- The mode usage for this validate action.public void addActiveHandler(ContentHandler handler, ModeUsage attributeModeUsage)
addActiveHandler
in interface SectionState
handler
- The content handler to be added.attributeModeUsage
- The mode usage.public void addAttributeValidationModeUsage(ModeUsage modeUsage)
addAttributeValidationModeUsage
in interface SectionState
public void reject() throws SAXException
reject
in interface SectionState
SAXException
public void attachPlaceholder(ModeUsage modeUsage, ContentHandler handler)
attachPlaceholder
in interface SectionState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |