本文整理汇总了Java中com.sun.org.apache.xerces.internal.xs.AttributePSVI.getSchemaNormalizedValue方法的典型用法代码示例。如果您正苦于以下问题:Java AttributePSVI.getSchemaNormalizedValue方法的具体用法?Java AttributePSVI.getSchemaNormalizedValue怎么用?Java AttributePSVI.getSchemaNormalizedValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.org.apache.xerces.internal.xs.AttributePSVI
的用法示例。
在下文中一共展示了AttributePSVI.getSchemaNormalizedValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setPSVI
import com.sun.org.apache.xerces.internal.xs.AttributePSVI; //导入方法依赖的package包/类
/**
* Copy PSVI properties from another psvi item.
*
* @param attr the source of attribute PSVI items
*/
public void setPSVI(AttributePSVI attr) {
this.fDeclaration = attr.getAttributeDeclaration();
this.fValidationContext = attr.getValidationContext();
this.fValidity = attr.getValidity();
this.fValidationAttempted = attr.getValidationAttempted();
this.fErrorCodes = attr.getErrorCodes();
this.fNormalizedValue = attr.getSchemaNormalizedValue();
this.fActualValue = attr.getActualNormalizedValue();
this.fActualValueType = attr.getActualNormalizedValueType();
this.fItemValueTypes = attr.getItemValueTypes();
this.fTypeDecl = attr.getTypeDefinition();
this.fMemberType = attr.getMemberTypeDefinition();
this.fSpecified = attr.getIsSchemaSpecified();
}
示例2: getSchemaDeterminedID
import com.sun.org.apache.xerces.internal.xs.AttributePSVI; //导入方法依赖的package包/类
/**
* Returns the schema-determined-ID.
*
*
* @param attributes
* @param index
* @return A String containing the schema-determined ID.
* @throws XNIException
*/
public String getSchemaDeterminedID(XMLAttributes attributes, int index)
throws XNIException {
Augmentations augs = attributes.getAugmentations(index);
AttributePSVI attrPSVI = (AttributePSVI) augs
.getItem(Constants.ATTRIBUTE_PSVI);
if (attrPSVI != null) {
// An element or attribute information item is a schema-determined
// ID if and only if one of the following is true:]
// 1. It has a [member type definition] or [type definition] property
// whose value in turn has [name] equal to ID and [target namespace]
// equal to http://www.w3.org/2001/XMLSchema;
// 2. It has a [base type definition] whose value has that [name] and [target namespace];
// 3. It has a [base type definition] whose value has a [base type definition]
// whose value has that [name] and [target namespace], and so on following
// the [base type definition] property recursively;
XSTypeDefinition typeDef = attrPSVI.getMemberTypeDefinition();
if (typeDef != null) {
typeDef = attrPSVI.getTypeDefinition();
}
//
if (typeDef != null && ((XSSimpleType) typeDef).isIDType()) {
return attrPSVI.getSchemaNormalizedValue();
}
// 4 & 5 NA
}
return null;
}