Java Code Examples for com.sun.xml.internal.dtdparser.DTDEventListener#OCCURENCE_ZERO_OR_ONE
The following examples show how to use
com.sun.xml.internal.dtdparser.DTDEventListener#OCCURENCE_ZERO_OR_ONE .
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: Occurence.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }
Example 2
Source File: Occurence.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }
Example 3
Source File: Occurence.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }
Example 4
Source File: Occurence.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }
Example 5
Source File: Occurence.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }
Example 6
Source File: Occurence.java From hottub with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }
Example 7
Source File: Occurence.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }
Example 8
Source File: Occurence.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
static Term wrap( Term t, int occurence ) { switch(occurence) { case DTDEventListener.OCCURENCE_ONCE: return t; case DTDEventListener.OCCURENCE_ONE_OR_MORE: return new Occurence(t,false,true); case DTDEventListener.OCCURENCE_ZERO_OR_MORE: return new Occurence(t,true,true); case DTDEventListener.OCCURENCE_ZERO_OR_ONE: return new Occurence(t,true,false); default: throw new IllegalArgumentException(); } }