本文整理汇总了Java中org.apache.xmlbeans.SchemaProperty.CONSISTENTLY属性的典型用法代码示例。如果您正苦于以下问题:Java SchemaProperty.CONSISTENTLY属性的具体用法?Java SchemaProperty.CONSISTENTLY怎么用?Java SchemaProperty.CONSISTENTLY使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.xmlbeans.SchemaProperty
的用法示例。
在下文中一共展示了SchemaProperty.CONSISTENTLY属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MSPSchemaTypeElement
public MSPSchemaTypeElement(SchemaProperty sProperty, String xPath) {
super(sProperty, xPath);
minOccurs = sProperty.getMinOccurs();
maxOccurs = sProperty.getMaxOccurs();
switch (sProperty.hasNillable()) {
case SchemaProperty.NEVER:
isNillable = Nillable.NEVER;
break;
case SchemaProperty.VARIABLE:
isNillable = Nillable.VARIABLE;
break;
case SchemaProperty.CONSISTENTLY:
isNillable = Nillable.CONSISTENTLY;
break;
default:
isNillable = Nillable.NEVER;
break;
}
}
示例2: SchemaTypeProperty
public SchemaTypeProperty(SchemaProperty sProperty, String xPath) {
qname = sProperty.getName();
String fullXPath = xPath;
if (this instanceof MSPSchemaTypeElement)
fullXPath += "/" + qname.getLocalPart();
else if (this instanceof MSPSchemaTypeAttribute)
fullXPath += "/@" + qname.getLocalPart();
this.xPath = fullXPath;
switch (sProperty.hasFixed()) {
case SchemaProperty.NEVER:
hasFixed = Occurs.NEVER;
break;
case SchemaProperty.VARIABLE:
hasFixed = Occurs.VARIABLE;
break;
case SchemaProperty.CONSISTENTLY:
hasFixed = Occurs.CONSISTENTLY;
break;
}
switch (sProperty.hasDefault()) {
case SchemaProperty.NEVER:
hasDefault = Occurs.NEVER;
break;
case SchemaProperty.VARIABLE:
hasDefault = Occurs.VARIABLE;
break;
case SchemaProperty.CONSISTENTLY:
hasDefault = Occurs.CONSISTENTLY;
break;
}
defaultValue = sProperty.getDefaultText();
schemaType = new MSSchemaTypeParser(sProperty.getType(), fullXPath);
}