当前位置: 首页>>代码示例>>Java>>正文


Java Property类代码示例

本文整理汇总了Java中com.sun.tools.internal.xjc.api.Property的典型用法代码示例。如果您正苦于以下问题:Java Property类的具体用法?Java Property怎么用?Java Property使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Property类属于com.sun.tools.internal.xjc.api包,在下文中一共展示了Property类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: JAXBProperty

import com.sun.tools.internal.xjc.api.Property; //导入依赖的package包/类
/**
 * 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();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:JAXBProperty.java

示例2: JAXBMapping

import com.sun.tools.internal.xjc.api.Property; //导入依赖的package包/类
/**
 * 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));
    }

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:JAXBMapping.java

示例3: getWrapperStyleDrilldown

import com.sun.tools.internal.xjc.api.Property; //导入依赖的package包/类
public final List<? extends Property> getWrapperStyleDrilldown() {
    if (!drilldownComputed) {
        drilldownComputed = true;
        drilldown = calcDrilldown();
    }
    return drilldown;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:AbstractMappingImpl.java

示例4: calcDrilldown

import com.sun.tools.internal.xjc.api.Property; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:29,代码来源:ElementMappingImpl.java

示例5: createPropertyImpl

import com.sun.tools.internal.xjc.api.Property; //导入依赖的package包/类
private Property createPropertyImpl(CPropertyInfo p, QName tagName) {
    return new PropertyImpl(this,
            parent.outline.getField(p), tagName);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:AbstractMappingImpl.java

示例6: calcDrilldown

import com.sun.tools.internal.xjc.api.Property; //导入依赖的package包/类
public List<Property> calcDrilldown() {
    if(!clazz.isOrdered())
        return null;    // all is not eligible for the wrapper style
    return buildDrilldown(clazz);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:BeanMappingImpl.java


注:本文中的com.sun.tools.internal.xjc.api.Property类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。