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


Java CClass类代码示例

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


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

示例1: elementDecl

import com.sun.tools.internal.xjc.model.CClass; //导入依赖的package包/类
public void elementDecl(XSElementDecl decl) {

        QName n = BGMBuilder.getName(decl);
        if(elementNames.add(n)) {
            CElement elementBean = Ring.get(ClassSelector.class).bindToType(decl,null);
            if(elementBean==null)
                refs.add(new XmlTypeRef(decl));
            else {
                // yikes!
                if(elementBean instanceof CClass)
                    refs.add(new CClassRef(decl,(CClass)elementBean));
                else
                    refs.add(new CElementInfoRef(decl,(CElementInfo)elementBean));
            }
        }
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:RawTypeSetBuilder.java

示例2: complexType

import com.sun.tools.internal.xjc.model.CClass; //导入依赖的package包/类
public void complexType(XSComplexType ct) {
    CClass ctBean = selector.bindToType(ct,null,false);
    if(getCurrentBean()!=ctBean)
        // in some case complex type and element binds to the same class
        // don't make it has-a. Just make it is-a.
        getCurrentBean().setBaseClass(ctBean);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:BindPurple.java

示例3: bindToType

import com.sun.tools.internal.xjc.model.CClass; //导入依赖的package包/类
public CClass bindToType( XSComplexType t, XSComponent referer, boolean cannotBeDelayed ) {
    // this assumption that a complex type always binds to a ClassInfo
    // does not hold for xs:anyType --- our current approach of handling
    // this idiosynchracy is to make sure that xs:anyType doesn't use
    // this codepath.
    return (CClass)_bindToClass(t,referer,cannotBeDelayed);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ClassSelector.java

示例4: CClassRef

import com.sun.tools.internal.xjc.model.CClass; //导入依赖的package包/类
CClassRef(XSElementDecl decl, CClass target) {
    this.decl = decl;
    this.target = target;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RawTypeSetBuilder.java


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