本文整理汇总了Java中com.sun.xml.internal.bind.v2.model.core.WildcardMode类的典型用法代码示例。如果您正苦于以下问题:Java WildcardMode类的具体用法?Java WildcardMode怎么用?Java WildcardMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WildcardMode类属于com.sun.xml.internal.bind.v2.model.core包,在下文中一共展示了WildcardMode类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ReferencePropertyInfoImpl
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
public ReferencePropertyInfoImpl(
ClassInfoImpl<T,C,F,M> classInfo,
PropertySeed<T,C,F,M> seed) {
super(classInfo, seed);
isMixed = seed.readAnnotation(XmlMixed.class) != null;
XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class);
if(xae==null) {
wildcard = null;
domHandler = null;
} else {
wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP;
domHandler = nav().asDecl(reader().getClassValue(xae,"value"));
}
}
开发者ID:campolake,项目名称:openjdk9,代码行数:18,代码来源:ReferencePropertyInfoImpl.java
示例2: getProcessContentsModeName
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
/**
* return the string representation of the processContents mode of the
* give wildcard, or null if it is the schema default "strict"
*
*/
private static String getProcessContentsModeName(WildcardMode wc) {
switch(wc) {
case LAX:
case SKIP:
return wc.name().toLowerCase();
case STRICT:
return null;
default:
throw new IllegalStateException();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:XmlSchemaGenerator.java
示例3: particle
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
/**
* Build up {@link #refs} and compute the total multiplicity of this {@link RawTypeSet.Ref} set.
*/
private void particle( XSParticle p ) {
// if the DOM customization is present, bind it like a wildcard
BIDom dom = builder.getLocalDomCustomization(p);
if(dom!=null) {
dom.markAsAcknowledged();
refs.add(new WildcardRef(WildcardMode.SKIP));
} else {
p.getTerm().visit(this);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:RawTypeSetBuilder.java
示例4: getMode
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
private static WildcardMode getMode(XSWildcard wildcard) {
switch(wildcard.getMode()) {
case XSWildcard.LAX:
return WildcardMode.LAX;
case XSWildcard.STRTICT:
return WildcardMode.STRICT;
case XSWildcard.SKIP:
return WildcardMode.SKIP;
default:
throw new IllegalStateException();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:RawTypeSetBuilder.java
示例5: getWildcard
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
public final WildcardMode getWildcard() {
return wildcard;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ReferencePropertyInfoImpl.java
示例6: WildcardLoader
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
public WildcardLoader(DomHandler dom, WildcardMode mode) {
this.dom = new DomLoader(dom);
this.mode = mode;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:WildcardLoader.java
示例7: WildcardRef
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
WildcardRef(WildcardMode mode) {
this.mode = mode;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:RawTypeSetBuilder.java
示例8: getWildcard
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
public WildcardMode getWildcard() {
return wildcard;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:CReferencePropertyInfo.java
示例9: setWildcard
import com.sun.xml.internal.bind.v2.model.core.WildcardMode; //导入依赖的package包/类
public void setWildcard(WildcardMode mode) {
this.wildcard = mode;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:CReferencePropertyInfo.java
注:本文中的com.sun.xml.internal.bind.v2.model.core.WildcardMode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论