本文整理汇总了Java中com.sun.xml.internal.xsom.XSWildcard.LAX属性的典型用法代码示例。如果您正苦于以下问题:Java XSWildcard.LAX属性的具体用法?Java XSWildcard.LAX怎么用?Java XSWildcard.LAX使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.sun.xml.internal.xsom.XSWildcard
的用法示例。
在下文中一共展示了XSWildcard.LAX属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: wildcard
private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
final String proessContents;
switch(wc.getMode()) {
case XSWildcard.LAX:
proessContents = " processContents='lax'";break;
case XSWildcard.STRTICT:
proessContents = "";break;
case XSWildcard.SKIP:
proessContents = " processContents='skip'";break;
default:
throw new AssertionError();
}
println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}
示例2: getMode
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();
}
}
示例3: merge
public void merge(XSWildcard wc) {
switch(wc.getMode()) {
case XSWildcard.LAX:
case XSWildcard.SKIP:
strict = false;
}
}