本文整理汇总了Java中com.sun.xml.internal.xsom.XSContentType类的典型用法代码示例。如果您正苦于以下问题:Java XSContentType类的具体用法?Java XSContentType怎么用?Java XSContentType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XSContentType类属于com.sun.xml.internal.xsom包,在下文中一共展示了XSContentType类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: containingChoice
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
private boolean containingChoice(CClassInfo typeBean) {
XSComponent component = typeBean.getSchemaComponent();
if (component instanceof XSComplexType) {
XSContentType contentType = ((XSComplexType) component).getContentType();
XSParticle particle = contentType.asParticle();
if (particle != null) {
XSTerm term = particle.getTerm();
XSModelGroup modelGroup = term.asModelGroup();
if (modelGroup != null) {
return (modelGroup.getCompositor() == XSModelGroup.Compositor.CHOICE);
}
}
}
return false;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:AbstractMappingImpl.java
示例2: build
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的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);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:MultiWildcardComplexTypeBuilder.java
示例3: getContentType
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public XSContentType getContentType() {
XSType t = baseType.getType();
if(t.asComplexType()!=null)
return t.asComplexType().getContentType();
else
return t.asSimpleType();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:BaseContentRef.java
示例4: getNameClass
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
/**
* Gets a {@link NameClass} that represents all the terms in the given content type.
* If t is not a particle, just return an empty name class.
*/
private NameClass getNameClass(XSContentType t) {
if(t==null) return NameClass.NULL;
XSParticle p = t.asParticle();
if(p==null) return NameClass.NULL;
else return p.getTerm().apply(contentModelNameClassBuilder);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:AbstractExtendedComplexTypeBuilder.java
示例5: empty
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public void empty(XSContentType t) {
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:3,代码来源:SchemaTreeTraverser.java
示例6: setExplicitContent
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public void setExplicitContent( XSContentType v ) {
this.explicitContent = v;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ComplexTypeImpl.java
示例7: empty
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public void empty(XSContentType xsContentType) {
// TODO: implement this method later
throw new UnsupportedOperationException();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:BindGreen.java
示例8: empty
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public void empty(XSContentType xsContentType) {
throw new IllegalStateException();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:BindYellow.java
示例9: empty
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public void empty(XSContentType xsContentType) {
// TODO
throw new UnsupportedOperationException();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:BindBlue.java
示例10: empty
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public void empty(XSContentType ct) {
// empty generates nothing
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:BindPurple.java
示例11: empty
import com.sun.xml.internal.xsom.XSContentType; //导入依赖的package包/类
public CElement empty(XSContentType xsContentType) {
return core.empty(xsContentType);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ClassBinderFilter.java
注:本文中的com.sun.xml.internal.xsom.XSContentType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论