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

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

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

origin: msv/msv

  public void onEndChild( XSDatatypeExp type ) {
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
//        final XSDatatypeImpl dti = (XSDatatypeImpl)type;
//        final String typeName = dti.getName();
    
    String typeName = reader.getCurrentState().getStartTag().getAttribute("name");
    
    if( typeName==null ) {
      // top-level simpleType must define a named type
      reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "simpleType", "name" );
      return;    // recover by ignoring this declaration
    }
    
    // memorize this type.
    final SimpleTypeExp exp = reader.currentSchema.simpleTypes.getOrCreate(typeName);
    if(exp.getType()!=null ) {
      reader.reportError( XMLSchemaReader.ERR_DATATYPE_ALREADY_DEFINED, typeName );
      return;
      // recover by ignoring this declaration
    }
    
    exp.set(type);
    reader.setDeclaredLocationOf(exp);
  }
}
origin: com.sun.xml.bind/jaxb1-impl

  public void onEndChild( XSDatatypeExp type ) {
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
//        final XSDatatypeImpl dti = (XSDatatypeImpl)type;
//        final String typeName = dti.getName();
    
    String typeName = reader.getCurrentState().getStartTag().getAttribute("name");
    
    if( typeName==null ) {
      // top-level simpleType must define a named type
      reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "simpleType", "name" );
      return;    // recover by ignoring this declaration
    }
    
    // memorize this type.
    final SimpleTypeExp exp = reader.currentSchema.simpleTypes.getOrCreate(typeName);
    if(exp.getType()!=null ) {
      reader.reportError( XMLSchemaReader.ERR_DATATYPE_ALREADY_DEFINED, typeName );
      return;
      // recover by ignoring this declaration
    }
    
    exp.set(type);
    reader.setDeclaredLocationOf(exp);
  }
}
origin: com.sun.xml.bind/jaxb-extra-osgi

  public void onEndChild( XSDatatypeExp type ) {
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
//        final XSDatatypeImpl dti = (XSDatatypeImpl)type;
//        final String typeName = dti.getName();
    
    String typeName = reader.getCurrentState().getStartTag().getAttribute("name");
    
    if( typeName==null ) {
      // top-level simpleType must define a named type
      reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "simpleType", "name" );
      return;    // recover by ignoring this declaration
    }
    
    // memorize this type.
    final SimpleTypeExp exp = reader.currentSchema.simpleTypes.getOrCreate(typeName);
    if(exp.getType()!=null ) {
      reader.reportError( XMLSchemaReader.ERR_DATATYPE_ALREADY_DEFINED, typeName );
      return;
      // recover by ignoring this declaration
    }
    
    exp.set(type);
    reader.setDeclaredLocationOf(exp);
  }
}
origin: kohsuke/msv

  public void onEndChild( XSDatatypeExp type ) {
    final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
//        final XSDatatypeImpl dti = (XSDatatypeImpl)type;
//        final String typeName = dti.getName();
    
    String typeName = reader.getCurrentState().getStartTag().getAttribute("name");
    
    if( typeName==null ) {
      // top-level simpleType must define a named type
      reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "simpleType", "name" );
      return;    // recover by ignoring this declaration
    }
    
    // memorize this type.
    final SimpleTypeExp exp = reader.currentSchema.simpleTypes.getOrCreate(typeName);
    if(exp.getType()!=null ) {
      reader.reportError( XMLSchemaReader.ERR_DATATYPE_ALREADY_DEFINED, typeName );
      return;
      // recover by ignoring this declaration
    }
    
    exp.set(type);
    reader.setDeclaredLocationOf(exp);
  }
}
com.sun.msv.reader.xmlschemaXMLSchemaReadergetCurrentState

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
  • getDeclaredLocationOf
  • detectUndefinedOnes,
  • getDeclaredLocationOf,
  • getOrCreateSchema,
  • getResult,
  • getType,
  • isSchemaDefined,
  • isSchemaNamespace,
  • isSubstitutable,
  • markSchemaAsDefined

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Collectors (java.util.stream)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Github Copilot alternatives
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