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

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

Best Java code snippets using com.sun.msv.reader.xmlschema.XMLSchemaReader.markSchemaAsDefined (Showing top 8 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: com.sun.xml.bind/jaxb1-impl

markSchemaAsDefined(xsdSchema);        
origin: com.sun.xml.bind/jaxb-extra-osgi

markSchemaAsDefined(xsdSchema);        
origin: msv/msv

markSchemaAsDefined(xsdSchema);        
origin: kohsuke/msv

markSchemaAsDefined(xsdSchema);        
com.sun.msv.reader.xmlschemaXMLSchemaReadermarkSchemaAsDefined

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,
  • isSchemaDefined,
  • isSchemaNamespace,
  • isSubstitutable

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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