本文整理汇总了Java中com.sun.tools.internal.xjc.model.CBuiltinLeafInfo.STRING属性的典型用法代码示例。如果您正苦于以下问题:Java CBuiltinLeafInfo.STRING属性的具体用法?Java CBuiltinLeafInfo.STRING怎么用?Java CBuiltinLeafInfo.STRING使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.sun.tools.internal.xjc.model.CBuiltinLeafInfo
的用法示例。
在下文中一共展示了CBuiltinLeafInfo.STRING属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: unionSimpleType
public TypeUse unionSimpleType(XSUnionSimpleType type) {
boolean isCollection = false;
for( int i=0; i<type.getMemberSize(); i++ )
if(type.getMember(i).getVariety()==XSVariety.LIST || type.getMember(i).getVariety()==XSVariety.UNION) {
isCollection = true;
break;
}
TypeUse r = CBuiltinLeafInfo.STRING;
if(isCollection)
r = TypeUseFactory.makeCollection(r);
return r;
}
示例2: create
/** Creates a global enumeration declaration. */
static BIEnumeration create( Element dom, BindInfo parent ) {
// create a class in the target package.
return new BIEnumeration(
dom,
new CEnumLeafInfo(
parent.model,
null,
new CClassInfoParent.Package(parent.getTargetPackage()),
DOMUtil.getAttribute(dom,"name"),
CBuiltinLeafInfo.STRING,
buildMemberList(parent.model,dom),
null, null/*TODO*/,
DOMLocator.getLocationInfo(dom)));
}
示例3: onDataType
private TypeUse onDataType(String datatypeLibrary, String type) {
DatatypeLib lib = compiler.datatypes.get(datatypeLibrary);
if(lib!=null) {
TypeUse use = lib.get(type);
if(use!=null)
return use;
}
// unknown
return CBuiltinLeafInfo.STRING;
}
示例4: onContainer
private TypeUse onContainer(DContainerPattern p) {
TypeUse t=null;
for( DPattern child : p ) {
TypeUse s = child.accept(this);
if(t!=null && t!=s)
return CBuiltinLeafInfo.STRING; // heterogenous
t = s;
}
return t;
}
示例5: onGrammar
public TypeUse onGrammar(DGrammarPattern p) {
return CBuiltinLeafInfo.STRING;
}
示例6: onChoice
public TypeUse onChoice(DChoicePattern p) {
// can't support unions
return CBuiltinLeafInfo.STRING;
}
示例7: onEmpty
public TypeUse onEmpty(DEmptyPattern p) {
return CBuiltinLeafInfo.STRING;
}
示例8: onOptional
public TypeUse onOptional(DOptionalPattern p) {
return CBuiltinLeafInfo.STRING;
}
示例9: onText
public TypeUse onText(DTextPattern p) {
return CBuiltinLeafInfo.STRING;
}