本文整理汇总了Java中com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIProperty.createValueProperty方法的典型用法代码示例。如果您正苦于以下问题:Java BIProperty.createValueProperty方法的具体用法?Java BIProperty.createValueProperty怎么用?Java BIProperty.createValueProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIProperty
的用法示例。
在下文中一共展示了BIProperty.createValueProperty方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: build
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIProperty; //导入方法依赖的package包/类
public void build(XSComplexType ct) {
XSContentType contentType = ct.getContentType();
builder.recordBindingMode(ct, FALLBACK_CONTENT);
BIProperty prop = BIProperty.getCustomization(ct);
CPropertyInfo p;
if(contentType.asEmpty()!=null) {
p = prop.createValueProperty("Content",false,ct,CBuiltinLeafInfo.STRING,null);
} else {
RawTypeSet ts = RawTypeSetBuilder.build(contentType.asParticle(),false);
p = prop.createReferenceProperty("Content", false, ct, ts, true, false, true, false);
}
selector.getCurrentBean().addProperty(p);
// adds attributes and we are through.
green.attContainer(ct);
}
示例2: createSimpleTypeProperty
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIProperty; //导入方法依赖的package包/类
protected final void createSimpleTypeProperty(XSSimpleType type,String propName) {
BIProperty prop = BIProperty.getCustomization(type);
SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class);
// since we are building the simple type here, use buildDef
CPropertyInfo p = prop.createValueProperty(propName,false,type,stb.buildDef(type),BGMBuilder.getName(type));
getCurrentBean().addProperty(p);
}