org.iso_relax.dispatcher
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.iso_relax.dispatcher(Showing top 15 results out of 315)

origin: com.sun.xml.bind.jaxb/isorelax

public void startElement(String s, String s1, String s2, Attributes attributes)
  throws SAXException {
  if(namespaceToIgnore.equals(s))
    return;
  IslandSchema islandschema = dispatcher.getSchemaProvider().getSchemaByNamespace(s);
  if(islandschema == null) {
    return;
  } else {
    IslandVerifier islandverifier = islandschema.createNewVerifier(s, islandschema.getElementDecls());
    dispatcher.switchVerifier(islandverifier);
    islandverifier.startElement(s, s1, s2, attributes);
    return;
  }
}
origin: com.sun.xml.bind.jaxb/isorelax

public void skippedEntity( String name )
  throws SAXException
{
  currentHandler.skippedEntity(name);
}
origin: com.sun.xml.bind.jaxb/isorelax

public void characters (char ch[], int start, int length)
  throws SAXException
{
  currentHandler.characters(ch, start, length);
}
origin: com.sun.xml.bind.jaxb/isorelax

public void processingInstruction (String target, String data)
  throws SAXException
{
  currentHandler.processingInstruction (target, data);
}
origin: com.sun.xml.bind.jaxb/isorelax

public void ignorableWhitespace (char ch[], int start, int length)
  throws SAXException
{
  currentHandler.ignorableWhitespace(ch, start, length);
}
origin: com.sun.xml.bind.jaxb/isorelax

public void setDocumentLocator( Locator locator )
{
  documentLocator = locator;
  currentHandler.setDocumentLocator(locator);
}
origin: com.sun.xml.bind.jaxb/isorelax

  public void endPrefixMapping(String prefix)
    throws SAXException
  {
    currentHandler.endPrefixMapping(prefix);
  }
}
origin: com.sun.xml.bind.jaxb/isorelax

public DispatcherImpl( SchemaProvider schema )
{
  this.schema = schema;
  this.transponder = new Transponder();
  this.currentHandler = schema.createTopLevelVerifier();
  this.currentHandler.setDispatcher(this);
}
 
origin: com.sun.xml.bind.jaxb/isorelax

public void startElement( String uri, String localName, String qName, Attributes attributes )
  throws SAXException
{
  currentHandler.startElement(uri,localName,qName,attributes);
  depth++;
  nsMap.pushContext();
}
origin: com.sun.xml.bind.jaxb/isorelax

public void startPrefixMapping(String prefix,String uri)
  throws SAXException
{
  nsMap.declarePrefix(prefix,uri);
  currentHandler.startPrefixMapping(prefix,uri);
}
public void endPrefixMapping(String prefix)
origin: com.sun.xml.bind.jaxb/isorelax

public void unparsedEntityDecl( String name, String systemId, String publicId, String notation )
{// memorize unparsedEntityDecl
  unparsedEntityDecls.add( new UnparsedEntityDecl(name,systemId,publicId,notation) );
}
public void notationDecl( String name, String systemId, String publicId )
origin: net.java.dev.msv/msv-core

public void fatalError( SAXParseException error ) throws SAXException {
  core.getErrorHandler().fatalError( error );
}
public void error( SAXParseException error ) throws SAXException {
origin: net.java.dev.msv/msv-core

/**
 * switch to another IslandVerifier to validate anyOtherElement.
 */
protected void switchToAnyOtherElement( AnyOtherElementExp[] exps,
  String namespaceUri, String localName, String qName, Attributes atts )
  throws SAXException {
  // memorize AnyOtherElementExps to the map
  for( int i=0; i<exps.length; i++ )
    rule2exp.put( exps[i], exps[i] );
  IslandVerifier iv = new AnyOtherElementVerifier(exps);
  dispatcher.switchVerifier(iv);
  
  // remember tag names (these will be used in endChildIsland method)
  lastNamaespaceUri = namespaceUri;
  lastLocalName = localName;
  lastQName = qName;
  
  // simulate this startElement event
  iv.startElement( namespaceUri, localName, qName, atts );
}

origin: msv/msv

public void fatalError( SAXParseException error ) throws SAXException {
  core.getErrorHandler().fatalError( error );
}
public void error( SAXParseException error ) throws SAXException {
origin: com.sun.xml.bind/jaxb1-impl

/**
 * switch to another IslandVerifier to validate anyOtherElement.
 */
protected void switchToAnyOtherElement( AnyOtherElementExp[] exps,
  String namespaceUri, String localName, String qName, Attributes atts )
  throws SAXException {
  // memorize AnyOtherElementExps to the map
  for( int i=0; i<exps.length; i++ )
    rule2exp.put( exps[i], exps[i] );
  IslandVerifier iv = new AnyOtherElementVerifier(exps);
  dispatcher.switchVerifier(iv);
  
  // remember tag names (these will be used in endChildIsland method)
  lastNamaespaceUri = namespaceUri;
  lastLocalName = localName;
  lastQName = qName;
  
  // simulate this startElement event
  iv.startElement( namespaceUri, localName, qName, atts );
}

org.iso_relax.dispatcher

Most used classes

  • Dispatcher
    splits incoming SAX events to "islands", and feed events to IslandVerifier.
  • IslandSchema
    represents a schema that validates one island.
  • IslandVerifier
    Interface for verifier that validates one island.
  • SchemaProvider
    provides necessary schema information for Dispatcher. This interface can be implemented by applicati
  • ElementDecl
    represents a constraint for one XML element. One can obtain an IslandVerifier that validates this co
  • DispatcherImpl,
  • IgnoredSchema,
  • Dispatcher$NotationDecl,
  • Dispatcher$UnparsedEntityDecl,
  • DispatcherImpl$Context,
  • DispatcherImpl$Transponder,
  • IgnoreVerifier

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)