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

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

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

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

final String[] s = reader.splitQName(typeQName);
if(s==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, typeQName );
origin: com.sun.xml.bind/jaxb-extra-osgi

final String[] s = reader.splitQName(typeQName);
if(s==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, typeQName );
origin: msv/msv

final String[] s = reader.splitQName(typeQName);
if(s==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, typeQName );
origin: kohsuke/msv

final String[] s = reader.splitQName(typeQName);
if(s==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, typeQName );
origin: com.sun.xml.bind/jaxb1-impl

protected void startSelf() {
  super.startSelf();
  final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
  
  base = startTag.getAttribute("base");
  if(base==null) {
    // in extension, base attribute is mandatory.
    reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, startTag.localName, "base");
    return;
  }
  
  baseTypeName = reader.splitQName(base);
  if( baseTypeName==null ) {
    reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, base );
    return;
  }
  
  baseSchema = reader.grammar.getByNamespace(baseTypeName[0]);
}

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

protected void startSelf() {
  super.startSelf();
  final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
  
  base = startTag.getAttribute("base");
  if(base==null) {
    // in extension, base attribute is mandatory.
    reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, startTag.localName, "base");
    return;
  }
  
  baseTypeName = reader.splitQName(base);
  if( baseTypeName==null ) {
    reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, base );
    return;
  }
  
  baseSchema = reader.grammar.getByNamespace(baseTypeName[0]);
}

origin: kohsuke/msv

protected void startSelf() {
  super.startSelf();
  final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
  
  base = startTag.getAttribute("base");
  if(base==null) {
    // in extension, base attribute is mandatory.
    reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, startTag.localName, "base");
    return;
  }
  
  baseTypeName = reader.splitQName(base);
  if( baseTypeName==null ) {
    reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, base );
    return;
  }
  
  baseSchema = reader.grammar.getByNamespace(baseTypeName[0]);
}

origin: msv/msv

protected void startSelf() {
  super.startSelf();
  final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
  
  base = startTag.getAttribute("base");
  if(base==null) {
    // in extension, base attribute is mandatory.
    reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, startTag.localName, "base");
    return;
  }
  
  baseTypeName = reader.splitQName(base);
  if( baseTypeName==null ) {
    reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, base );
    return;
  }
  
  baseSchema = reader.grammar.getByNamespace(baseTypeName[0]);
}

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

public Expression resolveQNameRef( StartTagInfo tag, String attName, RefResolver resolver ) {
  
  String refQName = tag.getAttribute(attName);
  if( refQName==null ) {
    reportError( ERR_MISSING_ATTRIBUTE, tag.qName, attName );
    return null;    // failed.
  }
  
  String[] r = splitQName(refQName);
  if(r==null) {
    reportError( ERR_UNDECLARED_PREFIX, refQName );
    return null;
  }
  
  Expression e =  resolver.get( getOrCreateSchema(r[0]/*uri*/) )._getOrCreate(r[1]/*local name*/);
  backwardReference.memorizeLink(e);
  
  return e;
}
origin: kohsuke/msv

public Expression resolveQNameRef( StartTagInfo tag, String attName, RefResolver resolver ) {
  
  String refQName = tag.getAttribute(attName);
  if( refQName==null ) {
    reportError( ERR_MISSING_ATTRIBUTE, tag.qName, attName );
    return null;    // failed.
  }
  
  String[] r = splitQName(refQName);
  if(r==null) {
    reportError( ERR_UNDECLARED_PREFIX, refQName );
    return null;
  }
  
  Expression e =  resolver.get( getOrCreateSchema(r[0]/*uri*/) )._getOrCreate(r[1]/*local name*/);
  backwardReference.memorizeLink(e);
  
  return e;
}
origin: msv/msv

public Expression resolveQNameRef( StartTagInfo tag, String attName, RefResolver resolver ) {
  
  String refQName = tag.getAttribute(attName);
  if( refQName==null ) {
    reportError( ERR_MISSING_ATTRIBUTE, tag.qName, attName );
    return null;    // failed.
  }
  
  String[] r = splitQName(refQName);
  if(r==null) {
    reportError( ERR_UNDECLARED_PREFIX, refQName );
    return null;
  }
  
  Expression e =  resolver.get( getOrCreateSchema(r[0]/*uri*/) )._getOrCreate(r[1]/*local name*/);
  backwardReference.memorizeLink(e);
  
  return e;
}
origin: com.sun.xml.bind/jaxb1-impl

public Expression resolveQNameRef( StartTagInfo tag, String attName, RefResolver resolver ) {
  
  String refQName = tag.getAttribute(attName);
  if( refQName==null ) {
    reportError( ERR_MISSING_ATTRIBUTE, tag.qName, attName );
    return null;    // failed.
  }
  
  String[] r = splitQName(refQName);
  if(r==null) {
    reportError( ERR_UNDECLARED_PREFIX, refQName );
    return null;
  }
  
  Expression e =  resolver.get( getOrCreateSchema(r[0]/*uri*/) )._getOrCreate(r[1]/*local name*/);
  backwardReference.memorizeLink(e);
  
  return e;
}
origin: msv/msv

String[] r = reader.splitQName(refQName);
if(r==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, refQName );
origin: com.sun.xml.bind/jaxb1-impl

String[] r = reader.splitQName(refQName);
if(r==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, refQName );
origin: com.sun.xml.bind/jaxb-extra-osgi

String[] r = reader.splitQName(refQName);
if(r==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, refQName );
origin: kohsuke/msv

String[] r = reader.splitQName(refQName);
if(r==null) {
  reader.reportError( XMLSchemaReader.ERR_UNDECLARED_PREFIX, refQName );
origin: com.sun.xml.bind/jaxb-extra-osgi

final String[] r = splitQName(typeQName);
if(r==null) {
  reportError( ERR_UNDECLARED_PREFIX, typeQName );
origin: com.sun.xml.bind/jaxb1-impl

final String[] r = splitQName(typeQName);
if(r==null) {
  reportError( ERR_UNDECLARED_PREFIX, typeQName );
origin: kohsuke/msv

final String[] r = splitQName(typeQName);
if(r==null) {
  reportError( ERR_UNDECLARED_PREFIX, typeQName );
origin: msv/msv

final String[] r = splitQName(typeQName);
if(r==null) {
  reportError( ERR_UNDECLARED_PREFIX, typeQName );
com.sun.msv.reader.xmlschemaXMLSchemaReadersplitQName

Javadoc

Resolves a QName into a pair of (namespace URI,local name).

When we are parsing a "chameleon schema", any reference to the default empty namespace("") has to be treated as a reference to the intended target namespace.

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,
  • markSchemaAsDefined

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • 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
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • CodeWhisperer 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