当前位置: 首页>>代码示例>>Java>>正文


Java SchemaProperty.CONSISTENTLY属性代码示例

本文整理汇总了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;
	}
}
 
开发者ID:dpinney,项目名称:essence,代码行数:19,代码来源:MSPSchemaTypeElement.java

示例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);
}
 
开发者ID:dpinney,项目名称:essence,代码行数:33,代码来源:SchemaTypeProperty.java


注:本文中的org.apache.xmlbeans.SchemaProperty.CONSISTENTLY属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。