com.sun.xml.internal.xsom.impl.SchemaImpl Java Examples

The following examples show how to use com.sun.xml.internal.xsom.impl.SchemaImpl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ParserContext.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public ParserContext( XSOMParser owner, XMLParser parser ) {
    this.owner = owner;
    this.parser = parser;

    try {
        parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm()));

        SchemaImpl xs = (SchemaImpl)
            schemaSet.getSchema("http://www.w3.org/2001/XMLSchema");
        xs.addSimpleType(schemaSet.anySimpleType,true);
        xs.addComplexType(schemaSet.anyType,true);
    } catch( SAXException e ) {
        // this must be a bug of XSOM
        if(e.getException()!=null)
            e.getException().printStackTrace();
        else
            e.printStackTrace();
        throw new InternalError();
    }
}
 
Example #2
Source File: ParserContext.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public ParserContext( XSOMParser owner, XMLParser parser ) {
    this.owner = owner;
    this.parser = parser;

    try {
        parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm()));

        SchemaImpl xs = (SchemaImpl)
            schemaSet.getSchema("http://www.w3.org/2001/XMLSchema");
        xs.addSimpleType(schemaSet.anySimpleType,true);
        xs.addComplexType(schemaSet.anyType,true);
    } catch( SAXException e ) {
        // this must be a bug of XSOM
        if(e.getException()!=null)
            e.getException().printStackTrace();
        else
            e.printStackTrace();
        throw new InternalError();
    }
}
 
Example #3
Source File: ParserContext.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public ParserContext( XSOMParser owner, XMLParser parser ) {
    this.owner = owner;
    this.parser = parser;

    try {
        parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm()));

        SchemaImpl xs = (SchemaImpl)
            schemaSet.getSchema("http://www.w3.org/2001/XMLSchema");
        xs.addSimpleType(schemaSet.anySimpleType,true);
        xs.addComplexType(schemaSet.anyType,true);
    } catch( SAXException e ) {
        // this must be a bug of XSOM
        if(e.getException()!=null)
            e.getException().printStackTrace();
        else
            e.printStackTrace();
        throw new InternalError();
    }
}
 
Example #4
Source File: ParserContext.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public ParserContext( XSOMParser owner, XMLParser parser ) {
    this.owner = owner;
    this.parser = parser;

    try {
        parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm()));

        SchemaImpl xs = (SchemaImpl)
            schemaSet.getSchema("http://www.w3.org/2001/XMLSchema");
        xs.addSimpleType(schemaSet.anySimpleType,true);
        xs.addComplexType(schemaSet.anyType,true);
    } catch( SAXException e ) {
        // this must be a bug of XSOM
        if(e.getException()!=null)
            e.getException().printStackTrace();
        else
            e.printStackTrace();
        throw new InternalError();
    }
}
 
Example #5
Source File: ParserContext.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public ParserContext( XSOMParser owner, XMLParser parser ) {
    this.owner = owner;
    this.parser = parser;

    try {
        parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm()));

        SchemaImpl xs = (SchemaImpl)
            schemaSet.getSchema("http://www.w3.org/2001/XMLSchema");
        xs.addSimpleType(schemaSet.anySimpleType,true);
        xs.addComplexType(schemaSet.anyType,true);
    } catch( SAXException e ) {
        // this must be a bug of XSOM
        if(e.getException()!=null)
            e.getException().printStackTrace();
        else
            e.printStackTrace();
        throw new InternalError();
    }
}
 
Example #6
Source File: ParserContext.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public ParserContext( XSOMParser owner, XMLParser parser ) {
    this.owner = owner;
    this.parser = parser;

    try {
        parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm()));

        SchemaImpl xs = (SchemaImpl)
            schemaSet.getSchema("http://www.w3.org/2001/XMLSchema");
        xs.addSimpleType(schemaSet.anySimpleType,true);
        xs.addComplexType(schemaSet.anyType,true);
    } catch( SAXException e ) {
        // this must be a bug of XSOM
        if(e.getException()!=null)
            e.getException().printStackTrace();
        else
            e.printStackTrace();
        throw new InternalError();
    }
}
 
Example #7
Source File: DelayedRef.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
DelayedRef( PatcherManager _manager, Locator _source, SchemaImpl _schema, UName _name ) {

        this.schema = _schema.getRoot();
        this.manager = _manager;
        this.name = _name;
        this.source = _source;

        if(name==null)  throw new InternalError();

        manager.addPatcher(this);
    }
 
Example #8
Source File: DelayedRef.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
DelayedRef( PatcherManager _manager, Locator _source, SchemaImpl _schema, UName _name ) {

        this.schema = _schema.getRoot();
        this.manager = _manager;
        this.name = _name;
        this.source = _source;

        if(name==null)  throw new InternalError();

        manager.addPatcher(this);
    }
 
Example #9
Source File: DelayedRef.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
DelayedRef( PatcherManager _manager, Locator _source, SchemaImpl _schema, UName _name ) {

        this.schema = _schema.getRoot();
        this.manager = _manager;
        this.name = _name;
        this.source = _source;

        if(name==null)  throw new InternalError();

        manager.addPatcher(this);
    }
 
Example #10
Source File: DelayedRef.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
DelayedRef( PatcherManager _manager, Locator _source, SchemaImpl _schema, UName _name ) {

        this.schema = _schema.getRoot();
        this.manager = _manager;
        this.name = _name;
        this.source = _source;

        if(name==null)  throw new InternalError();

        manager.addPatcher(this);
    }
 
Example #11
Source File: DelayedRef.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
DelayedRef( PatcherManager _manager, Locator _source, SchemaImpl _schema, UName _name ) {

        this.schema = _schema.getRoot();
        this.manager = _manager;
        this.name = _name;
        this.source = _source;

        if(name==null)  throw new InternalError();

        manager.addPatcher(this);
    }
 
Example #12
Source File: DelayedRef.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
DelayedRef( PatcherManager _manager, Locator _source, SchemaImpl _schema, UName _name ) {

        this.schema = _schema.getRoot();
        this.manager = _manager;
        this.name = _name;
        this.source = _source;

        if(name==null)  throw new InternalError();

        manager.addPatcher(this);
    }
 
Example #13
Source File: DelayedRef.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
DelayedRef( PatcherManager _manager, Locator _source, SchemaImpl _schema, UName _name ) {

        this.schema = _schema.getRoot();
        this.manager = _manager;
        this.name = _name;
        this.source = _source;

        if(name==null)  throw new InternalError();

        manager.addPatcher(this);
    }
 
Example #14
Source File: DelayedRef.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Type( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #15
Source File: SchemaDocumentImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public SchemaImpl getSchema() {
    return schema;
}
 
Example #16
Source File: DelayedRef.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public AttGroup( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #17
Source File: DelayedRef.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public AttGroup( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #18
Source File: DelayedRef.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ComplexType( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #19
Source File: DelayedRef.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public IdentityConstraint( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #20
Source File: DelayedRef.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public SimpleType( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #21
Source File: DelayedRef.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public SimpleType( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #22
Source File: DelayedRef.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public SimpleType( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #23
Source File: DelayedRef.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Attribute( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #24
Source File: DelayedRef.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public IdentityConstraint( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #25
Source File: SchemaDocumentImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected SchemaDocumentImpl(SchemaImpl schema, String _schemaDocumentURI) {
    this.schema = schema;
    this.schemaDocumentURI = _schemaDocumentURI;
}
 
Example #26
Source File: SchemaDocumentImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected SchemaDocumentImpl(SchemaImpl schema, String _schemaDocumentURI) {
    this.schema = schema;
    this.schemaDocumentURI = _schemaDocumentURI;
}
 
Example #27
Source File: DelayedRef.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public ModelGroup( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #28
Source File: DelayedRef.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public Attribute( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #29
Source File: DelayedRef.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Type( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}
 
Example #30
Source File: DelayedRef.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ModelGroup( PatcherManager manager, Locator loc, SchemaImpl schema, UName name ) {
    super(manager,loc,schema,name);
}