com.sun.tools.internal.xjc.api.Property Java Examples
The following examples show how to use
com.sun.tools.internal.xjc.api.Property.
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: AbstractMappingImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }
Example #2
Source File: JAXBProperty.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBProperty( Property prop ) { this.name = prop.name(); this.type = new JAXBTypeAndAnnotation(prop.type()); this.elementName = prop.elementName(); this.rawTypeName = prop.rawName(); }
Example #3
Source File: JAXBMapping.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #4
Source File: AbstractMappingImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }
Example #5
Source File: ElementMappingImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); }
Example #6
Source File: AbstractMappingImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }
Example #7
Source File: ElementMappingImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); }
Example #8
Source File: JAXBProperty.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBProperty( Property prop ) { this.name = prop.name(); this.type = new JAXBTypeAndAnnotation(prop.type()); this.elementName = prop.elementName(); this.rawTypeName = prop.rawName(); }
Example #9
Source File: JAXBMapping.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #10
Source File: JAXBProperty.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBProperty( Property prop ) { this.name = prop.name(); this.type = new JAXBTypeAndAnnotation(prop.type()); this.elementName = prop.elementName(); this.rawTypeName = prop.rawName(); }
Example #11
Source File: JAXBMapping.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #12
Source File: JAXBMapping.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #13
Source File: ElementMappingImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); }
Example #14
Source File: JAXBProperty.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBProperty( Property prop ) { this.name = prop.name(); this.type = new JAXBTypeAndAnnotation(prop.type()); this.elementName = prop.elementName(); this.rawTypeName = prop.rawName(); }
Example #15
Source File: JAXBMapping.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #16
Source File: AbstractMappingImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }
Example #17
Source File: ElementMappingImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); }
Example #18
Source File: JAXBProperty.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBProperty( Property prop ) { this.name = prop.name(); this.type = new JAXBTypeAndAnnotation(prop.type()); this.elementName = prop.elementName(); this.rawTypeName = prop.rawName(); }
Example #19
Source File: JAXBMapping.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #20
Source File: AbstractMappingImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }
Example #21
Source File: ElementMappingImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); }
Example #22
Source File: ElementMappingImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); }
Example #23
Source File: AbstractMappingImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }
Example #24
Source File: JAXBMapping.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #25
Source File: JAXBProperty.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBProperty( Property prop ) { this.name = prop.name(); this.type = new JAXBTypeAndAnnotation(prop.type()); this.elementName = prop.elementName(); this.rawTypeName = prop.rawName(); }
Example #26
Source File: ElementMappingImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); }
Example #27
Source File: JAXBProperty.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBProperty( Property prop ) { this.name = prop.name(); this.type = new JAXBTypeAndAnnotation(prop.type()); this.elementName = prop.elementName(); this.rawTypeName = prop.rawName(); }
Example #28
Source File: JAXBMapping.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Constructor that fills in the values from the given raw model */ JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) { elementName = rawModel.getElement(); TypeAndAnnotation typeAndAnno = rawModel.getType(); type = new JAXBTypeAndAnnotation(typeAndAnno); List<? extends Property> list = rawModel.getWrapperStyleDrilldown(); if(list==null) wrapperStyleDrilldown = null; else { wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size()); for( Property p : list ) wrapperStyleDrilldown.add(new JAXBProperty(p)); } }
Example #29
Source File: AbstractMappingImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }
Example #30
Source File: AbstractMappingImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public final List<? extends Property> getWrapperStyleDrilldown() { if (!drilldownComputed) { drilldownComputed = true; drilldown = calcDrilldown(); } return drilldown; }