Java源码示例:com.sun.xml.internal.xsom.impl.parser.SchemaDocumentImpl

示例1
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;
}
 
示例2
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;
}
 
示例3
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();
}
 
示例4
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);
}
 
示例5
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;
}
 
示例6
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);
}
 
示例7
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;
}
 
示例8
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;
}
 
示例9
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;
}
 
示例10
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;
}
 
示例11
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;
}
 
示例12
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;
}
 
示例13
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);
}
 
示例14
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);
}
 
示例15
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;
}
 
示例16
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();
}
 
示例17
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;
}
 
示例18
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;
}
 
示例19
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;
}
 
示例20
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();
}
 
示例21
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;
}
 
示例22
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;
}
 
示例23
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;
}
 
示例24
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;
}
 
示例25
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();
}
 
示例26
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;
}
 
示例27
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 );
}
 
示例28
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;
}
 
示例29
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;
}
 
示例30
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;
}