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

The following examples show how to use com.sun.xml.internal.xsom.XSListSimpleType. 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-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse listSimpleType(XSListSimpleType type) {
    // bind item type individually and then compose them into a list
    // facets on the list shouldn't be taken account when binding item types,
    // so weed to call build(), not compose().
    XSSimpleType itemType = type.getItemType();
    refererStack.push(itemType);
    TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType()));
    refererStack.pop();
    return tu;
}
 
Example #2
Source File: SchemaWriter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void listSimpleType( XSListSimpleType type ) {
    XSSimpleType itemType = type.getItemType();

    if(itemType.isLocal()) {
        println("<list>");
        indent++;
        simpleType(itemType);
        indent--;
        println("</list>");
    } else {
        // global type
        println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />",
            itemType.getTargetNamespace(), itemType.getName()));
    }
}
 
Example #3
Source File: SchemaWriter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void listSimpleType( XSListSimpleType type ) {
    XSSimpleType itemType = type.getItemType();

    if(itemType.isLocal()) {
        println("<list>");
        indent++;
        simpleType(itemType);
        indent--;
        println("</list>");
    } else {
        // global type
        println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />",
            itemType.getTargetNamespace(), itemType.getName()));
    }
}
 
Example #4
Source File: SchemaWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void listSimpleType( XSListSimpleType type ) {
    XSSimpleType itemType = type.getItemType();

    if(itemType.isLocal()) {
        println("<list>");
        indent++;
        simpleType(itemType);
        indent--;
        println("</list>");
    } else {
        // global type
        println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />",
            itemType.getTargetNamespace(), itemType.getName()));
    }
}
 
Example #5
Source File: SchemaWriter.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void listSimpleType( XSListSimpleType type ) {
    XSSimpleType itemType = type.getItemType();

    if(itemType.isLocal()) {
        println("<list>");
        indent++;
        simpleType(itemType);
        indent--;
        println("</list>");
    } else {
        // global type
        println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />",
            itemType.getTargetNamespace(), itemType.getName()));
    }
}
 
Example #6
Source File: SimpleTypeBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse listSimpleType(XSListSimpleType type) {
    // bind item type individually and then compose them into a list
    // facets on the list shouldn't be taken account when binding item types,
    // so weed to call build(), not compose().
    XSSimpleType itemType = type.getItemType();
    refererStack.push(itemType);
    TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType()));
    refererStack.pop();
    return tu;
}
 
Example #7
Source File: SimpleTypeBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse listSimpleType(XSListSimpleType type) {
    // bind item type individually and then compose them into a list
    // facets on the list shouldn't be taken account when binding item types,
    // so weed to call build(), not compose().
    XSSimpleType itemType = type.getItemType();
    refererStack.push(itemType);
    TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType()));
    refererStack.pop();
    return tu;
}
 
Example #8
Source File: SimpleTypeBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse listSimpleType(XSListSimpleType type) {
    // bind item type individually and then compose them into a list
    // facets on the list shouldn't be taken account when binding item types,
    // so weed to call build(), not compose().
    XSSimpleType itemType = type.getItemType();
    refererStack.push(itemType);
    TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType()));
    refererStack.pop();
    return tu;
}
 
Example #9
Source File: SchemaWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void listSimpleType( XSListSimpleType type ) {
    XSSimpleType itemType = type.getItemType();

    if(itemType.isLocal()) {
        println("<list>");
        indent++;
        simpleType(itemType);
        indent--;
        println("</list>");
    } else {
        // global type
        println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />",
            itemType.getTargetNamespace(), itemType.getName()));
    }
}
 
Example #10
Source File: SimpleTypeBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public TypeUse listSimpleType(XSListSimpleType type) {
    // bind item type individually and then compose them into a list
    // facets on the list shouldn't be taken account when binding item types,
    // so weed to call build(), not compose().
    XSSimpleType itemType = type.getItemType();
    refererStack.push(itemType);
    TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType()));
    refererStack.pop();
    return tu;
}
 
Example #11
Source File: SchemaWriter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void listSimpleType( XSListSimpleType type ) {
    XSSimpleType itemType = type.getItemType();

    if(itemType.isLocal()) {
        println("<list>");
        indent++;
        simpleType(itemType);
        indent--;
        println("</list>");
    } else {
        // global type
        println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />",
            itemType.getTargetNamespace(), itemType.getName()));
    }
}
 
Example #12
Source File: SimpleTypeImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public XSListSimpleType getBaseListType() {
    return getSimpleBaseType().getBaseListType();
}
 
Example #13
Source File: Axis.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Iterator<XSSimpleType> simpleType(XSSimpleType type) {
    XSListSimpleType baseList = type.getBaseListType();
    if(baseList==null)      return empty();
    return singleton(baseList.getItemType());
}
 
Example #14
Source File: UnusedCustomizationChecker.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void listSimpleType(XSListSimpleType type) {
    if(check(type))
        type.getItemType().visit((XSSimpleTypeVisitor)this);
}
 
Example #15
Source File: SimpleTypeImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public XSListSimpleType getBaseListType() {
    return getSimpleBaseType().getBaseListType();
}
 
Example #16
Source File: UnusedCustomizationChecker.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void listSimpleType(XSListSimpleType type) {
    if(check(type))
        type.getItemType().visit((XSSimpleTypeVisitor)this);
}
 
Example #17
Source File: Axis.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Iterator<XSSimpleType> simpleType(XSSimpleType type) {
    XSListSimpleType baseList = type.getBaseListType();
    if(baseList==null)      return empty();
    return singleton(baseList.getItemType());
}
 
Example #18
Source File: SimpleTypeImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public XSListSimpleType getBaseListType() {
    return getSimpleBaseType().getBaseListType();
}
 
Example #19
Source File: Axis.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public Iterator<XSSimpleType> simpleType(XSSimpleType type) {
    XSListSimpleType baseList = type.getBaseListType();
    if(baseList==null)      return empty();
    return singleton(baseList.getItemType());
}
 
Example #20
Source File: UnusedCustomizationChecker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void listSimpleType(XSListSimpleType type) {
    if(check(type))
        type.getItemType().visit((XSSimpleTypeVisitor)this);
}
 
Example #21
Source File: SimpleTypeImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public XSListSimpleType getBaseListType() {
    return getSimpleBaseType().getBaseListType();
}
 
Example #22
Source File: Axis.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public Iterator<XSSimpleType> simpleType(XSSimpleType type) {
    XSListSimpleType baseList = type.getBaseListType();
    if(baseList==null)      return empty();
    return singleton(baseList.getItemType());
}
 
Example #23
Source File: UnusedCustomizationChecker.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void listSimpleType(XSListSimpleType type) {
    if(check(type))
        type.getItemType().visit((XSSimpleTypeVisitor)this);
}
 
Example #24
Source File: UnusedCustomizationChecker.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void listSimpleType(XSListSimpleType type) {
    if(check(type))
        type.getItemType().visit((XSSimpleTypeVisitor)this);
}
 
Example #25
Source File: SimpleTypeImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public XSListSimpleType getBaseListType() {
    return getSimpleBaseType().getBaseListType();
}
 
Example #26
Source File: SimpleTypeImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public XSListSimpleType getBaseListType() {
    return getSimpleBaseType().getBaseListType();
}
 
Example #27
Source File: SimpleTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public XSListSimpleType getBaseListType() {
    return getSimpleBaseType().getBaseListType();
}
 
Example #28
Source File: Axis.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Iterator<XSSimpleType> simpleType(XSSimpleType type) {
    XSListSimpleType baseList = type.getBaseListType();
    if(baseList==null)      return empty();
    return singleton(baseList.getItemType());
}
 
Example #29
Source File: Axis.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public Iterator<XSSimpleType> simpleType(XSSimpleType type) {
    XSListSimpleType baseList = type.getBaseListType();
    if(baseList==null)      return empty();
    return singleton(baseList.getItemType());
}
 
Example #30
Source File: UnusedCustomizationChecker.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void listSimpleType(XSListSimpleType type) {
    if(check(type))
        type.getItemType().visit((XSSimpleTypeVisitor)this);
}