com.sun.xml.internal.bind.v2.model.runtime.RuntimeNonElement Java Examples
The following examples show how to use
com.sun.xml.internal.bind.v2.model.runtime.RuntimeNonElement.
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: PropertyFactory.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Look for the case that can be optimized as a leaf, * which is a kind of type whose XML representation is just PCDATA. */ static boolean isLeaf(RuntimePropertyInfo info) { Collection<? extends RuntimeTypeInfo> types = info.ref(); if(types.size()!=1) return false; RuntimeTypeInfo rti = types.iterator().next(); if(!(rti instanceof RuntimeNonElement)) return false; if(info.id()==ID.IDREF) // IDREF is always handled as leaf -- Transducer maps IDREF String back to an object return true; if(((RuntimeNonElement)rti).getTransducer()==null) // Transducer!=null means definitely binds to PCDATA. // even if transducer==null, a referene might be IDREF, // in which case it will still produce PCDATA in this reference. return false; if(!info.getIndividualType().equals(rti.getType())) return false; return true; }
Example #2
Source File: PropertyFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Look for the case that can be optimized as a leaf, * which is a kind of type whose XML representation is just PCDATA. */ static boolean isLeaf(RuntimePropertyInfo info) { Collection<? extends RuntimeTypeInfo> types = info.ref(); if(types.size()!=1) return false; RuntimeTypeInfo rti = types.iterator().next(); if(!(rti instanceof RuntimeNonElement)) return false; if(info.id()==ID.IDREF) // IDREF is always handled as leaf -- Transducer maps IDREF String back to an object return true; if(((RuntimeNonElement)rti).getTransducer()==null) // Transducer!=null means definitely binds to PCDATA. // even if transducer==null, a referene might be IDREF, // in which case it will still produce PCDATA in this reference. return false; if(!info.getIndividualType().equals(rti.getType())) return false; return true; }
Example #3
Source File: PropertyFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Look for the case that can be optimized as a leaf, * which is a kind of type whose XML representation is just PCDATA. */ static boolean isLeaf(RuntimePropertyInfo info) { Collection<? extends RuntimeTypeInfo> types = info.ref(); if(types.size()!=1) return false; RuntimeTypeInfo rti = types.iterator().next(); if(!(rti instanceof RuntimeNonElement)) return false; if(info.id()==ID.IDREF) // IDREF is always handled as leaf -- Transducer maps IDREF String back to an object return true; if(((RuntimeNonElement)rti).getTransducer()==null) // Transducer!=null means definitely binds to PCDATA. // even if transducer==null, a referene might be IDREF, // in which case it will still produce PCDATA in this reference. return false; if(!info.getIndividualType().equals(rti.getType())) return false; return true; }
Example #4
Source File: PropertyFactory.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Look for the case that can be optimized as a leaf, * which is a kind of type whose XML representation is just PCDATA. */ static boolean isLeaf(RuntimePropertyInfo info) { Collection<? extends RuntimeTypeInfo> types = info.ref(); if(types.size()!=1) return false; RuntimeTypeInfo rti = types.iterator().next(); if(!(rti instanceof RuntimeNonElement)) return false; if(info.id()==ID.IDREF) // IDREF is always handled as leaf -- Transducer maps IDREF String back to an object return true; if(((RuntimeNonElement)rti).getTransducer()==null) // Transducer!=null means definitely binds to PCDATA. // even if transducer==null, a referene might be IDREF, // in which case it will still produce PCDATA in this reference. return false; if(!info.getIndividualType().equals(rti.getType())) return false; return true; }
Example #5
Source File: RuntimeAttributePropertyInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public List<? extends RuntimeNonElement> ref() { return (List<? extends RuntimeNonElement>)super.ref(); }
Example #6
Source File: RuntimeModelBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override public RuntimeNonElement getClassInfo( Class clazz, boolean searchForSuperClass, Locatable upstream ) { return (RuntimeNonElement)super.getClassInfo(clazz,searchForSuperClass,upstream); }
Example #7
Source File: RuntimeValuePropertyInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
Example #8
Source File: RuntimeEnumLeafInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
RuntimeEnumLeafInfoImpl(RuntimeModelBuilder builder, Locatable upstream, Class<T> enumType) { super(builder,upstream,enumType,enumType); this.printMap = new EnumMap<T,B>(enumType); baseXducer = ((RuntimeNonElement)baseType).getTransducer(); }
Example #9
Source File: RuntimeElementInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public List<? extends RuntimeNonElement> ref() { return (List<? extends RuntimeNonElement>)super.ref(); }
Example #10
Source File: RuntimeElementInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
Example #11
Source File: RuntimeModelBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override public RuntimeNonElement getClassInfo( Class clazz, boolean searchForSuperClass, Locatable upstream ) { return (RuntimeNonElement)super.getClassInfo(clazz,searchForSuperClass,upstream); }
Example #12
Source File: RuntimeAttributePropertyInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public List<? extends RuntimeNonElement> ref() { return (List<? extends RuntimeNonElement>)super.ref(); }
Example #13
Source File: RuntimeTypeRefImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
Example #14
Source File: RuntimeTypeInfoSetImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override protected RuntimeNonElement createAnyType() { return RuntimeAnyTypeImpl.theInstance; }
Example #15
Source File: RuntimeModelBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override public RuntimeNonElement getClassInfo( Class clazz, Locatable upstream ) { return (RuntimeNonElement)super.getClassInfo(clazz,upstream); }
Example #16
Source File: RuntimeElementInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public List<? extends RuntimeNonElement> ref() { return (List<? extends RuntimeNonElement>)super.ref(); }
Example #17
Source File: RuntimeTypeInfoSetImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTypeInfo( Type type ) { return (RuntimeNonElement)super.getTypeInfo(type); }
Example #18
Source File: RuntimeModelBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override public RuntimeNonElement getClassInfo( Class clazz, Locatable upstream ) { return (RuntimeNonElement)super.getClassInfo(clazz,upstream); }
Example #19
Source File: RuntimeTypeRefImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
Example #20
Source File: RuntimeModelBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public RuntimeNonElement getClassInfo( Class clazz, boolean searchForSuperClass, Locatable upstream ) { return (RuntimeNonElement)super.getClassInfo(clazz,searchForSuperClass,upstream); }
Example #21
Source File: RuntimeAttributePropertyInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTarget() { return (RuntimeNonElement) super.getTarget(); }
Example #22
Source File: RuntimeTypeInfoSetImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getClassInfo(Class clazz) { return (RuntimeNonElement)super.getClassInfo(clazz); }
Example #23
Source File: RuntimeTypeInfoSetImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getAnyTypeInfo() { return (RuntimeNonElement)super.getAnyTypeInfo(); }
Example #24
Source File: RuntimeTypeInfoSetImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTypeInfo( Type type ) { return (RuntimeNonElement)super.getTypeInfo(type); }
Example #25
Source File: RuntimeTypeInfoSetImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override protected RuntimeNonElement createAnyType() { return RuntimeAnyTypeImpl.theInstance; }
Example #26
Source File: RuntimeModelBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public RuntimeNonElement getClassInfo( Class clazz, Locatable upstream ) { return (RuntimeNonElement)super.getClassInfo(clazz,upstream); }
Example #27
Source File: RuntimeMapPropertyInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getKeyType() { return (RuntimeNonElement)super.getKeyType(); }
Example #28
Source File: RuntimeValuePropertyInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public List<? extends RuntimeNonElement> ref() { return (List<? extends RuntimeNonElement>)super.ref(); }
Example #29
Source File: RuntimeValuePropertyInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
Example #30
Source File: RuntimeArrayInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public RuntimeNonElement getItemType() { return (RuntimeNonElement)super.getItemType(); }