com.thaiopensource.validate.nrl
Class ValidatorImpl.Section

java.lang.Object
  extended by com.thaiopensource.validate.nrl.ValidatorImpl.Section
All Implemented Interfaces:
SectionState
Enclosing class:
ValidatorImpl

private class ValidatorImpl.Section
extends Object
implements SectionState


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
           
(package private)  Vector attributeValidationModeUsages
           
(package private)  Vector childPrograms
          List of Programs saying what to do with child sections
(package private)  Stack context
           
(package private)  boolean contextDependent
           
(package private)  int depth
          Number of open elements in this section.
(package private)  String ns
          Namespace of this section.
(package private)  ValidatorImpl.Section parent
           
(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)
           
 
Method Summary
 void addActiveHandler(ContentHandler handler, ModeUsage attributeModeUsage)
           
 void addAttributeValidationModeUsage(ModeUsage modeUsage)
           
 void addChildMode(ModeUsage modeUsage, ContentHandler handler)
           
 void addValidator(Schema schema, ModeUsage modeUsage)
           
 void reject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

final ValidatorImpl.Section parent

ns

final String ns
Namespace of this section. Empty string for absent.


depth

int depth
Number of open elements in this section.


validators

final Vector validators
List of the Validators rooted in this section


schemas

final Vector schemas

activeHandlers

final Vector activeHandlers
List of the ContentHandlers that want to see the elements in this section


activeHandlersAttributeModeUsage

final Vector activeHandlersAttributeModeUsage

attributeValidationModeUsages

final Vector attributeValidationModeUsages

childPrograms

final Vector childPrograms
List of Programs saying what to do with child sections


context

final Stack context

contextDependent

boolean contextDependent

attributeProcessing

int attributeProcessing
Constructor Detail

ValidatorImpl.Section

ValidatorImpl.Section(String ns,
                      ValidatorImpl.Section parent)
Method Detail

addChildMode

public void addChildMode(ModeUsage modeUsage,
                         ContentHandler handler)
Specified by:
addChildMode in interface SectionState
handler - may be null

addValidator

public void addValidator(Schema schema,
                         ModeUsage modeUsage)
Specified by:
addValidator in interface SectionState

addActiveHandler

public void addActiveHandler(ContentHandler handler,
                             ModeUsage attributeModeUsage)
Specified by:
addActiveHandler in interface SectionState
Parameters:
handler - must not be null

addAttributeValidationModeUsage

public void addAttributeValidationModeUsage(ModeUsage modeUsage)
Specified by:
addAttributeValidationModeUsage in interface SectionState

reject

public void reject()
            throws SAXException
Specified by:
reject in interface SectionState
Throws:
SAXException