Tabnine Logo
XMLSchemaReader.isSchemaDefined
Code IndexAdd Tabnine to your IDE (free)

How to use
isSchemaDefined
method
in
com.sun.msv.reader.xmlschema.XMLSchemaReader

Best Java code snippets using com.sun.msv.reader.xmlschema.XMLSchemaReader.isSchemaDefined (Showing top 12 results out of 315)

origin: msv/msv

protected void onTargetNamespaceResolved( String targetNs ) {
  super.onTargetNamespaceResolved(targetNs);
  
  final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
  
  // sets new XMLSchemaGrammar object.
  old = reader.currentSchema;
  reader.currentSchema = reader.getOrCreateSchema(targetNs);
  
  if( reader.isSchemaDefined(reader.currentSchema) )  {
    reader.reportError( XMLSchemaReader.ERR_DUPLICATE_SCHEMA_DEFINITION, targetNs );
    // recover by providing dummy grammar object.
    // this object is not registered to the map,
    // so it cannot be referenced.
    reader.currentSchema = new XMLSchemaSchema(targetNs,reader.grammar);
  }
  
  reader.markSchemaAsDefined(reader.currentSchema);
}

origin: com.sun.xml.bind/jaxb1-impl

protected void onTargetNamespaceResolved( String targetNs ) {
  super.onTargetNamespaceResolved(targetNs);
  
  final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
  
  // sets new XMLSchemaGrammar object.
  old = reader.currentSchema;
  reader.currentSchema = reader.getOrCreateSchema(targetNs);
  
  if( reader.isSchemaDefined(reader.currentSchema) )  {
    reader.reportError( XMLSchemaReader.ERR_DUPLICATE_SCHEMA_DEFINITION, targetNs );
    // recover by providing dummy grammar object.
    // this object is not registered to the map,
    // so it cannot be referenced.
    reader.currentSchema = new XMLSchemaSchema(targetNs,reader.grammar);
  }
  
  reader.markSchemaAsDefined(reader.currentSchema);
}

origin: kohsuke/msv

protected void onTargetNamespaceResolved( String targetNs, boolean ignoreContents ) {
  super.onTargetNamespaceResolved(targetNs, ignoreContents);
  XMLSchemaReader reader = (XMLSchemaReader)this.reader;        
  
  // sets new XMLSchemaGrammar object.
  old = reader.currentSchema;
  reader.currentSchema = reader.getOrCreateSchema(targetNs);
  /*
   * Don't check for errors if this is a redundant read that we are ignoring.
   */
  if (ignoreContents) {
    return;
  }
  
  if( reader.isSchemaDefined(reader.currentSchema) )  {
    reader.reportError( XMLSchemaReader.ERR_DUPLICATE_SCHEMA_DEFINITION, targetNs );
    // recover by providing dummy grammar object.
    // this object is not registered to the map,
    // so it cannot be referenced.
    reader.currentSchema = new XMLSchemaSchema(targetNs,reader.grammar);
  }
  
  reader.markSchemaAsDefined(reader.currentSchema);
}

origin: com.sun.xml.bind/jaxb-extra-osgi

protected void onTargetNamespaceResolved( String targetNs, boolean ignoreContents ) {
  super.onTargetNamespaceResolved(targetNs, ignoreContents);
  XMLSchemaReader reader = (XMLSchemaReader)this.reader;        
  
  // sets new XMLSchemaGrammar object.
  old = reader.currentSchema;
  reader.currentSchema = reader.getOrCreateSchema(targetNs);
  /*
   * Don't check for errors if this is a redundant read that we are ignoring.
   */
  if (ignoreContents) {
    return;
  }
  
  if( reader.isSchemaDefined(reader.currentSchema) )  {
    reader.reportError( XMLSchemaReader.ERR_DUPLICATE_SCHEMA_DEFINITION, targetNs );
    // recover by providing dummy grammar object.
    // this object is not registered to the map,
    // so it cannot be referenced.
    reader.currentSchema = new XMLSchemaSchema(targetNs,reader.grammar);
  }
  
  reader.markSchemaAsDefined(reader.currentSchema);
}

origin: msv/msv

  protected void startSelf() {
    super.startSelf();
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
    
    // TODO: @schemaLocation is optional.
    String namespace = startTag.getAttribute("namespace");
    if( namespace==null )   namespace="";
    
    if( namespace.equals(reader.currentSchema.targetNamespace) ) {
      reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE );
      return;
    }
    
    if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) )
      // this grammar is already defined.
      // so ignore it.
      return;
        
    try {
      reader.switchSource( this,
        new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) );
    } catch( AbortException e ) {
      // recover by ignoring the error
    }
  }
}
origin: com.sun.xml.bind/jaxb-extra-osgi

  protected void startSelf() {
    super.startSelf();
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
    
    // TODO: @schemaLocation is optional.
    String namespace = startTag.getAttribute("namespace");
    if( namespace==null )   namespace="";
    
    if( namespace.equals(reader.currentSchema.targetNamespace) ) {
      reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE );
      return;
    }
    
    if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) )
      // this grammar is already defined.
      // so ignore it.
      return;
        
    try {
      reader.switchSource( this,
        new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) );
    } catch( AbortException e ) {
      // recover by ignoring the error
    }
  }
}
origin: com.sun.xml.bind/jaxb1-impl

  protected void startSelf() {
    super.startSelf();
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
    
    // TODO: @schemaLocation is optional.
    String namespace = startTag.getAttribute("namespace");
    if( namespace==null )   namespace="";
    
    if( namespace.equals(reader.currentSchema.targetNamespace) ) {
      reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE );
      return;
    }
    
    if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) )
      // this grammar is already defined.
      // so ignore it.
      return;
        
    try {
      reader.switchSource( this,
        new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) );
    } catch( AbortException e ) {
      // recover by ignoring the error
    }
  }
}
origin: kohsuke/msv

  protected void startSelf() {
    super.startSelf();
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
    
    // TODO: @schemaLocation is optional.
    String namespace = startTag.getAttribute("namespace");
    if( namespace==null )   namespace="";
    
    if( namespace.equals(reader.currentSchema.targetNamespace) ) {
      reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE );
      return;
    }
    
    if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) )
      // this grammar is already defined.
      // so ignore it.
      return;
        
    try {
      reader.switchSource( this,
        new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) );
    } catch( AbortException e ) {
      // recover by ignoring the error
    }
  }
}
origin: msv/msv

XMLSchemaSchema schema = (XMLSchemaSchema)itr.next();
if( !isSchemaDefined(schema) ) {
  reportError(
    backwardReference.getReferer(schema),
origin: com.sun.xml.bind/jaxb-extra-osgi

XMLSchemaSchema schema = (XMLSchemaSchema)itr.next();
if( !isSchemaDefined(schema) ) {
  reportError(
    backwardReference.getReferer(schema),
origin: com.sun.xml.bind/jaxb1-impl

XMLSchemaSchema schema = (XMLSchemaSchema)itr.next();
if( !isSchemaDefined(schema) ) {
  reportError(
    backwardReference.getReferer(schema),
origin: kohsuke/msv

XMLSchemaSchema schema = (XMLSchemaSchema)itr.next();
if( !isSchemaDefined(schema) ) {
  reportError(
    backwardReference.getReferer(schema),
com.sun.msv.reader.xmlschemaXMLSchemaReaderisSchemaDefined

Popular methods of XMLSchemaReader

  • parse
    loads XML Schema
  • switchSource
  • <init>
  • getXmlSchemaForXmlSchema
  • _processOccurs
  • addBackPatchJob
  • createAttributeState
    creates a state object that parses "attribute","attributeGroup ref", and "anyAttribute".
  • createFacetState
  • createModelGroupState
    creates a state object that parses "all"/"group ref"/"choice" and "sequence".
  • createParserFactory
  • detectUndefinedOnes
  • getCurrentState
  • detectUndefinedOnes,
  • getCurrentState,
  • getDeclaredLocationOf,
  • getOrCreateSchema,
  • getResult,
  • getType,
  • isSchemaNamespace,
  • isSubstitutable,
  • markSchemaAsDefined

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTable (javax.swing)
  • JTextField (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now