Java源码示例:com.sun.tools.internal.xjc.api.Property
示例1
/**
* 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();
}
示例2
/**
* 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));
}
}
示例3
public final List<? extends Property> getWrapperStyleDrilldown() {
if (!drilldownComputed) {
drilldownComputed = true;
drilldown = calcDrilldown();
}
return drilldown;
}
示例4
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);
}
示例5
/**
* 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();
}
示例6
/**
* 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));
}
}
示例7
public final List<? extends Property> getWrapperStyleDrilldown() {
if (!drilldownComputed) {
drilldownComputed = true;
drilldown = calcDrilldown();
}
return drilldown;
}
示例8
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);
}
示例9
/**
* 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();
}
示例10
/**
* 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));
}
}
示例11
public final List<? extends Property> getWrapperStyleDrilldown() {
if (!drilldownComputed) {
drilldownComputed = true;
drilldown = calcDrilldown();
}
return drilldown;
}
示例12
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);
}
示例13
/**
* 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();
}
示例14
/**
* 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));
}
}
示例15
public final List<? extends Property> getWrapperStyleDrilldown() {
if (!drilldownComputed) {
drilldownComputed = true;
drilldown = calcDrilldown();
}
return drilldown;
}
示例16
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);
}
示例17
public final List<? extends Property> getWrapperStyleDrilldown() {
if (!drilldownComputed) {
drilldownComputed = true;
drilldown = calcDrilldown();
}
return drilldown;
}
示例18
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);
}
示例19
/**
* 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();
}
示例20
/**
* 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));
}
}
示例21
/**
* 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();
}
示例22
/**
* 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));
}
}
示例23
public final List<? extends Property> getWrapperStyleDrilldown() {
if (!drilldownComputed) {
drilldownComputed = true;
drilldown = calcDrilldown();
}
return drilldown;
}
示例24
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);
}
示例25
/**
* 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();
}
示例26
/**
* 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));
}
}
示例27
public final List<? extends Property> getWrapperStyleDrilldown() {
if (!drilldownComputed) {
drilldownComputed = true;
drilldown = calcDrilldown();
}
return drilldown;
}
示例28
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);
}
示例29
/**
* 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();
}
示例30
/**
* 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));
}
}