Java Code Examples for com.sun.xml.internal.xsom.XSWildcard#getMode()

The following examples show how to use com.sun.xml.internal.xsom.XSWildcard#getMode() . 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: RawTypeSetBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static WildcardMode getMode(XSWildcard wildcard) {
    switch(wildcard.getMode()) {
    case XSWildcard.LAX:
        return WildcardMode.LAX;
    case XSWildcard.STRTICT:
        return WildcardMode.STRICT;
    case XSWildcard.SKIP:
        return WildcardMode.SKIP;
    default:
        throw new IllegalStateException();
    }
}
 
Example 2
Source File: RawTypeSetBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private static WildcardMode getMode(XSWildcard wildcard) {
    switch(wildcard.getMode()) {
    case XSWildcard.LAX:
        return WildcardMode.LAX;
    case XSWildcard.STRTICT:
        return WildcardMode.STRICT;
    case XSWildcard.SKIP:
        return WildcardMode.SKIP;
    default:
        throw new IllegalStateException();
    }
}
 
Example 3
Source File: SchemaWriter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
    final String proessContents;
    switch(wc.getMode()) {
    case XSWildcard.LAX:
        proessContents = " processContents='lax'";break;
    case XSWildcard.STRTICT:
        proessContents = "";break;
    case XSWildcard.SKIP:
        proessContents = " processContents='skip'";break;
    default:
        throw new AssertionError();
    }

    println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
 
Example 4
Source File: GWildcardElement.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}
 
Example 5
Source File: RawTypeSetBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static WildcardMode getMode(XSWildcard wildcard) {
    switch(wildcard.getMode()) {
    case XSWildcard.LAX:
        return WildcardMode.LAX;
    case XSWildcard.STRTICT:
        return WildcardMode.STRICT;
    case XSWildcard.SKIP:
        return WildcardMode.SKIP;
    default:
        throw new IllegalStateException();
    }
}
 
Example 6
Source File: SchemaWriter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
    final String proessContents;
    switch(wc.getMode()) {
    case XSWildcard.LAX:
        proessContents = " processContents='lax'";break;
    case XSWildcard.STRTICT:
        proessContents = "";break;
    case XSWildcard.SKIP:
        proessContents = " processContents='skip'";break;
    default:
        throw new AssertionError();
    }

    println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
 
Example 7
Source File: GWildcardElement.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}
 
Example 8
Source File: RawTypeSetBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static WildcardMode getMode(XSWildcard wildcard) {
    switch(wildcard.getMode()) {
    case XSWildcard.LAX:
        return WildcardMode.LAX;
    case XSWildcard.STRTICT:
        return WildcardMode.STRICT;
    case XSWildcard.SKIP:
        return WildcardMode.SKIP;
    default:
        throw new IllegalStateException();
    }
}
 
Example 9
Source File: SchemaWriter.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
    final String proessContents;
    switch(wc.getMode()) {
    case XSWildcard.LAX:
        proessContents = " processContents='lax'";break;
    case XSWildcard.STRTICT:
        proessContents = "";break;
    case XSWildcard.SKIP:
        proessContents = " processContents='skip'";break;
    default:
        throw new AssertionError();
    }

    println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
 
Example 10
Source File: GWildcardElement.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}
 
Example 11
Source File: SchemaWriter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
    final String proessContents;
    switch(wc.getMode()) {
    case XSWildcard.LAX:
        proessContents = " processContents='lax'";break;
    case XSWildcard.STRTICT:
        proessContents = "";break;
    case XSWildcard.SKIP:
        proessContents = " processContents='skip'";break;
    default:
        throw new AssertionError();
    }

    println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
 
Example 12
Source File: SchemaWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
    final String proessContents;
    switch(wc.getMode()) {
    case XSWildcard.LAX:
        proessContents = " processContents='lax'";break;
    case XSWildcard.STRTICT:
        proessContents = "";break;
    case XSWildcard.SKIP:
        proessContents = " processContents='skip'";break;
    default:
        throw new AssertionError();
    }

    println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
 
Example 13
Source File: GWildcardElement.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}
 
Example 14
Source File: RawTypeSetBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static WildcardMode getMode(XSWildcard wildcard) {
    switch(wildcard.getMode()) {
    case XSWildcard.LAX:
        return WildcardMode.LAX;
    case XSWildcard.STRTICT:
        return WildcardMode.STRICT;
    case XSWildcard.SKIP:
        return WildcardMode.SKIP;
    default:
        throw new IllegalStateException();
    }
}
 
Example 15
Source File: SchemaWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
    final String proessContents;
    switch(wc.getMode()) {
    case XSWildcard.LAX:
        proessContents = " processContents='lax'";break;
    case XSWildcard.STRTICT:
        proessContents = "";break;
    case XSWildcard.SKIP:
        proessContents = " processContents='skip'";break;
    default:
        throw new AssertionError();
    }

    println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
 
Example 16
Source File: GWildcardElement.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}
 
Example 17
Source File: RawTypeSetBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static WildcardMode getMode(XSWildcard wildcard) {
    switch(wildcard.getMode()) {
    case XSWildcard.LAX:
        return WildcardMode.LAX;
    case XSWildcard.STRTICT:
        return WildcardMode.STRICT;
    case XSWildcard.SKIP:
        return WildcardMode.SKIP;
    default:
        throw new IllegalStateException();
    }
}
 
Example 18
Source File: SchemaWriter.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
    final String proessContents;
    switch(wc.getMode()) {
    case XSWildcard.LAX:
        proessContents = " processContents='lax'";break;
    case XSWildcard.STRTICT:
        proessContents = "";break;
    case XSWildcard.SKIP:
        proessContents = " processContents='skip'";break;
    default:
        throw new AssertionError();
    }

    println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
 
Example 19
Source File: GWildcardElement.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}
 
Example 20
Source File: GWildcardElement.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}