Codota Logo
XMLSchemaReader.markSchemaAsDefined
Code IndexAdd Codota 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)

  • Common ways to obtain XMLSchemaReader
private void myMethod () {
XMLSchemaReader x =
  • Codota IconSimpleContentRestrictionState simpleContentRestrictionState;(XMLSchemaReader) simpleContentRestrictionState.reader
  • Codota IconRedefineState redefineState;(XMLSchemaReader) redefineState.reader
  • Codota IconElementDeclState elementDeclState;(XMLSchemaReader) elementDeclState.reader
  • Smart code suggestions by Codota
}
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
  • setContentView (Activity)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now