com.sun.xml.internal.xsom.impl.parser.SchemaDocumentImpl Java Examples

The following examples show how to use com.sun.xml.internal.xsom.impl.parser.SchemaDocumentImpl. 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: ComplexTypeImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public ComplexTypeImpl( SchemaDocumentImpl _parent,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
    String _name, boolean _anonymous,

    boolean _abstract, int _derivationMethod,
    Ref.Type _base, int _final, int _block, boolean _mixed ) {

    super(_parent,_annon,_loc,_fa,_name,_anonymous);

    if(_base==null)
        throw new IllegalArgumentException();

    this._abstract = _abstract;
    this.derivationMethod = _derivationMethod;
    this.baseType = _base;
    this.finalValue = _final;
    this.blockValue = _block;
    this.mixed = _mixed;
}
 
Example #2
Source File: ComplexTypeImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public ComplexTypeImpl( SchemaDocumentImpl _parent,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
    String _name, boolean _anonymous,

    boolean _abstract, int _derivationMethod,
    Ref.Type _base, int _final, int _block, boolean _mixed ) {

    super(_parent,_annon,_loc,_fa,_name,_anonymous);

    if(_base==null)
        throw new IllegalArgumentException();

    this._abstract = _abstract;
    this.derivationMethod = _derivationMethod;
    this.baseType = _base;
    this.finalValue = _final;
    this.blockValue = _block;
    this.mixed = _mixed;
}
 
Example #3
Source File: DeclarationImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
DeclarationImpl( SchemaDocumentImpl owner,
    AnnotationImpl _annon, Locator loc, ForeignAttributesImpl fa,
    String _targetNamespace, String _name,    boolean _anonymous ) {

    super(owner,_annon,loc,fa);
    this.targetNamespace = _targetNamespace;
    this.name = _name;
    this.anonymous = _anonymous;
}
 
Example #4
Source File: RestrictionSimpleTypeImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public RestrictionSimpleTypeImpl( SchemaDocumentImpl _parent,
                                  AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
                                  String _name, boolean _anonymous, Set<XSVariety> finalSet,
                                  Ref.SimpleType _baseType ) {

    super( _parent, _annon, _loc, _fa, _name, _anonymous, finalSet, _baseType );
}
 
Example #5
Source File: ParticleImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ParticleImpl( SchemaDocumentImpl owner, AnnotationImpl _ann,
    Ref.Term _term, Locator _loc, int _maxOccurs, int _minOccurs ) {

    super(owner,_ann,_loc,null);
    this.term = _term;
    this.maxOccurs = BigInteger.valueOf(_maxOccurs);
    this.minOccurs = BigInteger.valueOf(_minOccurs);
}
 
Example #6
Source File: DeclarationImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
DeclarationImpl( SchemaDocumentImpl owner,
    AnnotationImpl _annon, Locator loc, ForeignAttributesImpl fa,
    String _targetNamespace, String _name,    boolean _anonymous ) {

    super(owner,_annon,loc,fa);
    this.targetNamespace = _targetNamespace;
    this.name = _name;
    this.anonymous = _anonymous;
}
 
Example #7
Source File: UnionSimpleTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public UnionSimpleTypeImpl( SchemaDocumentImpl _parent,
                            AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
                            String _name, boolean _anonymous, Set<XSVariety> finalSet,
                            Ref.SimpleType[] _members ) {

    super(_parent,_annon,_loc,_fa,_name,_anonymous, finalSet,
        _parent.getSchema().parent.anySimpleType);

    this.memberTypes = _members;
}
 
Example #8
Source File: NotationImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public NotationImpl( SchemaDocumentImpl owner, AnnotationImpl _annon,
    Locator _loc, ForeignAttributesImpl _fa, String _name,
    String _publicId, String _systemId ) {
    super(owner,_annon,_loc,_fa,owner.getTargetNamespace(),_name,false);

    this.publicId = _publicId;
    this.systemId = _systemId;
}
 
Example #9
Source File: SimpleTypeImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
SimpleTypeImpl(
    SchemaDocumentImpl _parent,
    AnnotationImpl _annon,
    Locator _loc,
    ForeignAttributesImpl _fa,
    String _name,
    boolean _anonymous,
    Set<XSVariety> finalSet,
    Ref.SimpleType _baseType) {

    super(_parent, _annon, _loc, _fa, _parent.getTargetNamespace(), _name, _anonymous);

    this.baseType = _baseType;
    this.finalSet = finalSet;
}
 
Example #10
Source File: AttributeDeclImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public AttributeDeclImpl( SchemaDocumentImpl owner,
    String _targetNamespace, String _name,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, boolean _anonymous,
    XmlString _defValue, XmlString _fixedValue,
    Ref.SimpleType _type ) {

    super(owner,_annon,_loc,_fa,_targetNamespace,_name,_anonymous);

    if(_name==null) // assertion failed.
        throw new IllegalArgumentException();

    this.defaultValue = _defValue;
    this.fixedValue = _fixedValue;
    this.type = _type;
}
 
Example #11
Source File: WildcardImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public WildcardImpl union( SchemaDocumentImpl owner, WildcardImpl rhs ) {
    if(this instanceof Any || rhs instanceof Any)
        return new Any(owner,null,null,null,mode);

    if(this instanceof Finite && rhs instanceof Finite) {
        Set<String> values = new HashSet<String>();
        values.addAll( ((Finite)this).names );
        values.addAll( ((Finite)rhs ).names );
        return new Finite(owner,null,null,null,values,mode);
    }

    if(this instanceof Other && rhs instanceof Other) {
        if( ((Other)this).otherNamespace.equals(
            ((Other)rhs).otherNamespace) )
            return new Other(owner,null,null,null, ((Other)this).otherNamespace, mode );
        else
            // this somewhat strange rule is indeed in the spec
            return new Other(owner,null,null,null, "", mode );
    }

    Other o;
    Finite f;

    if( this instanceof Other ) {
        o=(Other)this; f=(Finite)rhs;
    } else {
        o=(Other)rhs; f=(Finite)this;
    }

    if(f.names.contains(o.otherNamespace))
        return new Any(owner,null,null,null,mode);
    else
        return new Other(owner,null,null,null,o.otherNamespace,mode);
}
 
Example #12
Source File: FacetImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public FacetImpl( SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
    String _name, XmlString _value, boolean _fixed ) {

    super(owner,_annon,_loc,_fa);

    this.name = _name;
    this.value = _value;
    this.fixed = _fixed;
}
 
Example #13
Source File: NotationImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public NotationImpl( SchemaDocumentImpl owner, AnnotationImpl _annon,
    Locator _loc, ForeignAttributesImpl _fa, String _name,
    String _publicId, String _systemId ) {
    super(owner,_annon,_loc,_fa,owner.getTargetNamespace(),_name,false);

    this.publicId = _publicId;
    this.systemId = _systemId;
}
 
Example #14
Source File: ElementDecl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ElementDecl( PatcherManager reader, SchemaDocumentImpl owner,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl fa,
    String _tns, String _name, boolean _anonymous,

    XmlString _defv, XmlString _fixedv,
    boolean _nillable, boolean _abstract, Boolean _form,
    Ref.Type _type, Ref.Element _substHead,
    int _substDisallowed, int _substExcluded,
    List<IdentityConstraintImpl> idConstraints) {

    super(owner,_annon,_loc,fa,_tns,_name,_anonymous);

    this.defaultValue = _defv;
    this.fixedValue = _fixedv;
    this.nillable = _nillable;
    this._abstract = _abstract;
    this.form = _form;
    this.type = _type;
    this.substHead = _substHead;
    this.substDisallowed = _substDisallowed;
    this.substExcluded = _substExcluded;
    this.idConstraints = Collections.unmodifiableList((List<? extends XSIdentityConstraint>)idConstraints);

    for (IdentityConstraintImpl idc : idConstraints)
        idc.setParent(this);

    if(type==null)
        throw new IllegalArgumentException();
}
 
Example #15
Source File: ListSimpleTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ListSimpleTypeImpl( SchemaDocumentImpl _parent,
                           AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
                           String _name, boolean _anonymous, Set<XSVariety> finalSet,
                           Ref.SimpleType _itemType ) {

    super(_parent,_annon,_loc,_fa,_name,_anonymous, finalSet,
        _parent.getSchema().parent.anySimpleType);

    this.itemType = _itemType;
}
 
Example #16
Source File: UnionSimpleTypeImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public UnionSimpleTypeImpl( SchemaDocumentImpl _parent,
                            AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
                            String _name, boolean _anonymous, Set<XSVariety> finalSet,
                            Ref.SimpleType[] _members ) {

    super(_parent,_annon,_loc,_fa,_name,_anonymous, finalSet,
        _parent.getSchema().parent.anySimpleType);

    this.memberTypes = _members;
}
 
Example #17
Source File: ParticleImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ParticleImpl( SchemaDocumentImpl owner, AnnotationImpl _ann,
    Ref.Term _term, Locator _loc, BigInteger _maxOccurs, BigInteger _minOccurs ) {

    super(owner,_ann,_loc,null);
    this.term = _term;
    this.maxOccurs = _maxOccurs;
    this.minOccurs = _minOccurs;
}
 
Example #18
Source File: ParticleImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ParticleImpl( SchemaDocumentImpl owner, AnnotationImpl _ann,
    Ref.Term _term, Locator _loc, int _maxOccurs, int _minOccurs ) {

    super(owner,_ann,_loc,null);
    this.term = _term;
    this.maxOccurs = BigInteger.valueOf(_maxOccurs);
    this.minOccurs = BigInteger.valueOf(_minOccurs);
}
 
Example #19
Source File: NotationImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public NotationImpl( SchemaDocumentImpl owner, AnnotationImpl _annon,
    Locator _loc, ForeignAttributesImpl _fa, String _name,
    String _publicId, String _systemId ) {
    super(owner,_annon,_loc,_fa,owner.getTargetNamespace(),_name,false);

    this.publicId = _publicId;
    this.systemId = _systemId;
}
 
Example #20
Source File: IdentityConstraintImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public IdentityConstraintImpl(SchemaDocumentImpl _owner, AnnotationImpl _annon, Locator _loc,
    ForeignAttributesImpl fa, short category, String name, XPathImpl selector,
    List<XPathImpl> fields, Ref.IdentityConstraint refer) {

    super(_owner, _annon, _loc, fa);
    this.category = category;
    this.name = name;
    this.selector = selector;
    selector.setParent(this);
    this.fields = Collections.unmodifiableList((List<? extends XSXPath>)fields);
    for( XPathImpl xp : fields )
        xp.setParent(this);
    this.refer = refer;
}
 
Example #21
Source File: AttributeDeclImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public AttributeDeclImpl( SchemaDocumentImpl owner,
    String _targetNamespace, String _name,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, boolean _anonymous,
    XmlString _defValue, XmlString _fixedValue,
    Ref.SimpleType _type ) {

    super(owner,_annon,_loc,_fa,_targetNamespace,_name,_anonymous);

    if(_name==null) // assertion failed.
        throw new IllegalArgumentException();

    this.defaultValue = _defValue;
    this.fixedValue = _fixedValue;
    this.type = _type;
}
 
Example #22
Source File: AttributeDeclImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public AttributeDeclImpl( SchemaDocumentImpl owner,
    String _targetNamespace, String _name,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, boolean _anonymous,
    XmlString _defValue, XmlString _fixedValue,
    Ref.SimpleType _type ) {

    super(owner,_annon,_loc,_fa,_targetNamespace,_name,_anonymous);

    if(_name==null) // assertion failed.
        throw new IllegalArgumentException();

    this.defaultValue = _defValue;
    this.fixedValue = _fixedValue;
    this.type = _type;
}
 
Example #23
Source File: ParticleImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ParticleImpl( SchemaDocumentImpl owner, AnnotationImpl _ann,
    Ref.Term _term, Locator _loc, BigInteger _maxOccurs, BigInteger _minOccurs ) {

    super(owner,_ann,_loc,null);
    this.term = _term;
    this.maxOccurs = _maxOccurs;
    this.minOccurs = _minOccurs;
}
 
Example #24
Source File: NotationImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public NotationImpl( SchemaDocumentImpl owner, AnnotationImpl _annon,
    Locator _loc, ForeignAttributesImpl _fa, String _name,
    String _publicId, String _systemId ) {
    super(owner,_annon,_loc,_fa,owner.getTargetNamespace(),_name,false);

    this.publicId = _publicId;
    this.systemId = _systemId;
}
 
Example #25
Source File: ModelGroupDeclImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public ModelGroupDeclImpl( SchemaDocumentImpl owner,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
    String _targetNamespace, String _name,
    ModelGroupImpl _modelGroup ) {

    super(owner,_annon,_loc,_fa,_targetNamespace,_name,false);
    this.modelGroup = _modelGroup;

    if(modelGroup==null)
        throw new IllegalArgumentException();
}
 
Example #26
Source File: AttributeDeclImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public AttributeDeclImpl( SchemaDocumentImpl owner,
    String _targetNamespace, String _name,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, boolean _anonymous,
    XmlString _defValue, XmlString _fixedValue,
    Ref.SimpleType _type ) {

    super(owner,_annon,_loc,_fa,_targetNamespace,_name,_anonymous);

    if(_name==null) // assertion failed.
        throw new IllegalArgumentException();

    this.defaultValue = _defValue;
    this.fixedValue = _fixedValue;
    this.type = _type;
}
 
Example #27
Source File: ModelGroupImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public ModelGroupImpl( SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
                       Compositor _compositor, ParticleImpl[] _children ) {

    super(owner,_annon,_loc,_fa);
    this.compositor = _compositor;
    this.children = _children;

    if(compositor==null)
        throw new IllegalArgumentException();
    for( int i=children.length-1; i>=0; i-- )
        if(children[i]==null)
            throw new IllegalArgumentException();
}
 
Example #28
Source File: AttributeUseImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public AttributeUseImpl( SchemaDocumentImpl owner, AnnotationImpl ann, Locator loc, ForeignAttributesImpl fa, Ref.Attribute _decl,
    XmlString def, XmlString fixed, boolean req ) {

    super(owner,ann,loc,fa);

    this.att = _decl;
    this.defaultValue = def;
    this.fixedValue = fixed;
    this.required = req;
}
 
Example #29
Source File: DeclarationImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
DeclarationImpl( SchemaDocumentImpl owner,
    AnnotationImpl _annon, Locator loc, ForeignAttributesImpl fa,
    String _targetNamespace, String _name,    boolean _anonymous ) {

    super(owner,_annon,loc,fa);
    this.targetNamespace = _targetNamespace;
    this.name = _name;
    this.anonymous = _anonymous;
}
 
Example #30
Source File: UnionSimpleTypeImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public UnionSimpleTypeImpl( SchemaDocumentImpl _parent,
                            AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa,
                            String _name, boolean _anonymous, Set<XSVariety> finalSet,
                            Ref.SimpleType[] _members ) {

    super(_parent,_annon,_loc,_fa,_name,_anonymous, finalSet,
        _parent.getSchema().parent.anySimpleType);

    this.memberTypes = _members;
}