本文整理汇总了Java中com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder类的典型用法代码示例。如果您正苦于以下问题:Java BGMBuilder类的具体用法?Java BGMBuilder怎么用?Java BGMBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BGMBuilder类属于com.sun.tools.internal.xjc.reader.xmlschema包,在下文中一共展示了BGMBuilder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createAttributeProperty
import com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder; //导入依赖的package包/类
public CAttributePropertyInfo createAttributeProperty( XSAttributeUse use, TypeUse tu ) {
boolean forConstant =
getCustomization(use).isConstantProperty() &&
use.getFixedValue()!=null;
String name = getPropertyName(forConstant);
if(name==null) {
NameConverter conv = getBuilder().getNameConverter();
if(forConstant)
name = conv.toConstantName(use.getDecl().getName());
else
name = conv.toPropertyName(use.getDecl().getName());
if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode())
name = JJavaName.getPluralForm(name);
}
markAsAcknowledged();
constantPropertyErrorCheck();
return wrapUp(new CAttributePropertyInfo(name,use,getCustomizations(use),use.getLocator(),
BGMBuilder.getName(use.getDecl()), tu,
BGMBuilder.getName(use.getDecl().getType()), use.isRequired() ),use);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:25,代码来源:BIProperty.java
示例2: CClassInfo
import com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder; //导入依赖的package包/类
public CClassInfo(Model model,CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) {
super(model,source,location,customizations);
this.model = model;
this.parent = p;
this.shortName = model.allocator.assignClassName(parent,shortName);
this.typeName = typeName;
this.elementName = elementName;
Language schemaLanguage = model.options.getSchemaLanguage();
if ((schemaLanguage != null) &&
(schemaLanguage.equals(Language.XMLSCHEMA) || schemaLanguage.equals(Language.WSDL))) {
BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class);
if(factoryMethod!=null) {
factoryMethod.markAsAcknowledged();
this.squeezedName = factoryMethod.name;
}
}
model.add(this);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:CClassInfo.java
示例3: setOwner
import com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder; //导入依赖的package包/类
/**
* Sets the owner schema component and a reference to BGMBuilder.
* This method is called from the BGMBuilder before
* any BIDeclaration inside it is used.
*/
public void setOwner( BGMBuilder _builder, XSComponent _owner ) {
this.owner = _owner;
this.builder = _builder;
for (BIDeclaration d : decls)
d.onSetOwner();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:BindInfo.java
示例4: handle
import com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder; //导入依赖的package包/类
/**
* If the given component has {@link BIInlineBinaryData} customization,
* reflect that to the specified property.
*/
public static void handle(XSComponent source, CPropertyInfo prop) {
BIInlineBinaryData inline = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIInlineBinaryData.class);
if(inline!=null) {
prop.inlineBinaryData = true;
inline.markAsAcknowledged();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:BIInlineBinaryData.java
示例5: getDefault
import com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder; //导入依赖的package包/类
private static BIProperty getDefault( BGMBuilder builder, XSComponent c ) {
while(c!=null) {
c = c.apply(defaultCustomizationFinder);
if(c!=null) {
BIProperty prop = builder.getBindInfo(c).get(BIProperty.class);
if(prop!=null) return prop;
}
}
// default to the global one
return builder.getGlobalBinding().getDefaultProperty();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:BIProperty.java
注:本文中的com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论