Here are the examples of the java api class com.sun.org.apache.xerces.internal.xs.AttributePSVI taken from open source projects.
1. ShortHandPointer#getSchemaDeterminedID()
Project: openjdk
File: ShortHandPointer.java
File: ShortHandPointer.java
/** * 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; }