com.sun.xml.internal.xsom.XSVariety Java Examples

The following examples show how to use com.sun.xml.internal.xsom.XSVariety. 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: SimpleTypeBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse unionSimpleType(XSUnionSimpleType type) {
    boolean isCollection = false;
    for( int i=0; i<type.getMemberSize(); i++ )
        if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
            isCollection = true;
            break;
        }

    TypeUse r = CBuiltinLeafInfo.STRING;
    if(isCollection)
        r = TypeUseFactory.makeCollection(r);
    return r;
}
 
Example #2
Source File: SimpleTypeImpl.java    From openjdk-8-source 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 #3
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 #4
Source File: UnionSimpleTypeImpl.java    From TencentKona-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 #5
Source File: SimpleTypeImpl.java    From TencentKona-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 #6
Source File: ListSimpleTypeImpl.java    From openjdk-8 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 #7
Source File: SimpleTypeBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse unionSimpleType(XSUnionSimpleType type) {
    boolean isCollection = false;
    for( int i=0; i<type.getMemberSize(); i++ )
        if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
            isCollection = true;
            break;
        }

    TypeUse r = CBuiltinLeafInfo.STRING;
    if(isCollection)
        r = TypeUseFactory.makeCollection(r);
    return r;
}
 
Example #8
Source File: SimpleTypeBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse unionSimpleType(XSUnionSimpleType type) {
    boolean isCollection = false;
    for( int i=0; i<type.getMemberSize(); i++ )
        if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
            isCollection = true;
            break;
        }

    TypeUse r = CBuiltinLeafInfo.STRING;
    if(isCollection)
        r = TypeUseFactory.makeCollection(r);
    return r;
}
 
Example #9
Source File: ListSimpleTypeImpl.java    From hottub 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 #10
Source File: ListSimpleTypeImpl.java    From TencentKona-8 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 #11
Source File: SimpleTypeBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse unionSimpleType(XSUnionSimpleType type) {
    boolean isCollection = false;
    for( int i=0; i<type.getMemberSize(); i++ )
        if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
            isCollection = true;
            break;
        }

    TypeUse r = CBuiltinLeafInfo.STRING;
    if(isCollection)
        r = TypeUseFactory.makeCollection(r);
    return r;
}
 
Example #12
Source File: SimpleTypeImpl.java    From hottub 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 #13
Source File: RestrictionSimpleTypeImpl.java    From openjdk-jdk8u 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 #14
Source File: UnionSimpleTypeImpl.java    From hottub 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 #15
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 #16
Source File: RestrictionSimpleTypeImpl.java    From openjdk-8 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 #17
Source File: SimpleTypeImpl.java    From openjdk-jdk8u 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 #18
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 #19
Source File: SimpleTypeBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse unionSimpleType(XSUnionSimpleType type) {
    boolean isCollection = false;
    for( int i=0; i<type.getMemberSize(); i++ )
        if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
            isCollection = true;
            break;
        }

    TypeUse r = CBuiltinLeafInfo.STRING;
    if(isCollection)
        r = TypeUseFactory.makeCollection(r);
    return r;
}
 
Example #20
Source File: SimpleTypeBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse unionSimpleType(XSUnionSimpleType type) {
    boolean isCollection = false;
    for( int i=0; i<type.getMemberSize(); i++ )
        if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
            isCollection = true;
            break;
        }

    TypeUse r = CBuiltinLeafInfo.STRING;
    if(isCollection)
        r = TypeUseFactory.makeCollection(r);
    return r;
}
 
Example #21
Source File: ListSimpleTypeImpl.java    From openjdk-jdk9 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 #22
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 #23
Source File: SimpleTypeImpl.java    From openjdk-jdk9 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 #24
Source File: UnionSimpleTypeImpl.java    From openjdk-jdk8u-backup 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 #25
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 #26
Source File: SimpleTypeImpl.java    From openjdk-jdk8u-backup 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 #27
Source File: UnionSimpleTypeImpl.java    From openjdk-jdk9 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 #28
Source File: ListSimpleTypeImpl.java    From openjdk-jdk8u-backup 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 #29
Source File: RestrictionSimpleTypeImpl.java    From openjdk-jdk9 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 #30
Source File: SimpleTypeBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse unionSimpleType(XSUnionSimpleType type) {
    boolean isCollection = false;
    for( int i=0; i<type.getMemberSize(); i++ )
        if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
            isCollection = true;
            break;
        }

    TypeUse r = CBuiltinLeafInfo.STRING;
    if(isCollection)
        r = TypeUseFactory.makeCollection(r);
    return r;
}