com.sun.xml.internal.dtdparser.DTDEventListener Java Examples
The following examples show how to use
com.sun.xml.internal.dtdparser.DTDEventListener.
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: Element.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #2
Source File: Element.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #3
Source File: Element.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #4
Source File: Element.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #5
Source File: Element.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #6
Source File: Element.java From hottub with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #7
Source File: Element.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #8
Source File: Element.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private CClassInfo calcClass() { BIElement e = owner.bindInfo.element(name); if(e==null) { if(contentModelType!=DTDEventListener.CONTENT_MODEL_MIXED || !attributes.isEmpty() || mustBeClass) return createDefaultClass(); if(contentModel!=Term.EMPTY) { throw new UnsupportedOperationException("mixed content model not supported"); } else { // just #PCDATA if(isReferenced) return null; else // if no one else is referencing, assumed to be the root. return createDefaultClass(); } } else { return e.clazz; } }
Example #9
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 #10
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 #11
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 #12
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 #13
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 #14
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 #15
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 #16
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(); } }