本文整理汇总了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));
}
}
}
示例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);
}
示例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);
}
示例4: CClassRef
import com.sun.tools.internal.xjc.model.CClass; //导入依赖的package包/类
CClassRef(XSElementDecl decl, CClass target) {
this.decl = decl;
this.target = target;
}