下面列出了怎么用org.w3c.dom.TypeInfo的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Method getSchemaTypeInfo.
* @return TypeInfo
*/
public TypeInfo getSchemaTypeInfo(){
if(needsSyncData()) {
synchronizeData();
}
return this;
}
private TypeInfo getAttributeType( int index ) {
checkState(false);
if( index<0 || fAttributes.getLength()<=index )
throw new IndexOutOfBoundsException(Integer.toString(index));
Augmentations augs = fAttributes.getAugmentations(index);
if (augs == null) return null;
AttributePSVI psvi = (AttributePSVI)augs.getItem(Constants.ATTRIBUTE_PSVI);
return getTypeInfoFromPSVI(psvi);
}
/**
* Method getSchemaTypeInfo.
* @return TypeInfo
*/
public TypeInfo getSchemaTypeInfo(){
if(needsSyncData()) {
synchronizeData();
}
return this;
}
/**
* Method getSchemaTypeInfo.
* @return TypeInfo
*/
public TypeInfo getSchemaTypeInfo(){
if(needsSyncData()) {
synchronizeData();
}
return this;
}
private TypeInfo getAttributeType( int index ) {
checkState(false);
if( index<0 || fAttributes.getLength()<=index )
throw new IndexOutOfBoundsException(Integer.toString(index));
Augmentations augs = fAttributes.getAugmentations(index);
if (augs == null) return null;
AttributePSVI psvi = (AttributePSVI)augs.getItem(Constants.ATTRIBUTE_PSVI);
return getTypeInfoFromPSVI(psvi);
}
/**
* Method getSchemaTypeInfo.
* @return TypeInfo
*/
public TypeInfo getSchemaTypeInfo(){
if(needsSyncData()) {
synchronizeData();
}
return this;
}
private TypeInfo getAttributeType( int index ) {
checkState(false);
if( index<0 || fAttributes.getLength()<=index )
throw new IndexOutOfBoundsException(Integer.toString(index));
Augmentations augs = fAttributes.getAugmentations(index);
if (augs == null) return null;
AttributePSVI psvi = (AttributePSVI)augs.getItem(Constants.ATTRIBUTE_PSVI);
return getTypeInfoFromPSVI(psvi);
}
private TypeInfo getAttributeType( int index ) {
checkState(false);
if( index<0 || fAttributes.getLength()<=index )
throw new IndexOutOfBoundsException(Integer.toString(index));
Augmentations augs = fAttributes.getAugmentations(index);
if (augs == null) return null;
AttributePSVI psvi = (AttributePSVI)augs.getItem(Constants.ATTRIBUTE_PSVI);
return getTypeInfoFromPSVI(psvi);
}
public TypeInfo getAttributeTypeInfo(int index) {
checkState(false);
return getAttributeType(index);
}
public TypeInfo getAttributeTypeInfo(String attributeUri, String attributeLocalName) {
checkState(false);
return getAttributeTypeInfo(fAttributes.getIndex(attributeUri,attributeLocalName));
}
public TypeInfo getAttributeTypeInfo(String attributeQName) {
checkState(false);
return getAttributeTypeInfo(fAttributes.getIndex(attributeQName));
}
public TypeInfo getElementTypeInfo() {
checkState(true);
if (fElementAugs == null) return null;
ElementPSVI psvi = (ElementPSVI)fElementAugs.getItem(Constants.ELEMENT_PSVI);
return getTypeInfoFromPSVI(psvi);
}
public TypeInfo getElementTypeInfo() {
return null;
}
public TypeInfo getAttributeTypeInfo(int index) {
return null;
}
public TypeInfo getAttributeTypeInfo(String attributeUri, String attributeLocalName) {
return null;
}
@Override
public TypeInfo getSchemaTypeInfo() {
throw new UnsupportedOperationException();
}
/**
* Method getSchemaTypeInfo.
* @return TypeInfo
*/
@Override
public TypeInfo getSchemaTypeInfo(){
return null; //PENDING
}
public TypeInfo getSchemaTypeInfo() {
return null;
}
public TypeInfo getAttributeTypeInfo(String attributeQName) {
return null;
}
public TypeInfo getAttributeTypeInfo(int index) {
checkState(false);
return getAttributeType(index);
}
public TypeInfo getAttributeTypeInfo(String attributeUri, String attributeLocalName) {
checkState(false);
return getAttributeTypeInfo(fAttributes.getIndex(attributeUri,attributeLocalName));
}
public TypeInfo getAttributeTypeInfo(String attributeQName) {
checkState(false);
return getAttributeTypeInfo(fAttributes.getIndex(attributeQName));
}
public TypeInfo getElementTypeInfo() {
return null;
}
public TypeInfo getAttributeTypeInfo(int index) {
return null;
}
public TypeInfo getAttributeTypeInfo(String attributeQName) {
return null;
}
public TypeInfo getAttributeTypeInfo(String attributeUri, String attributeLocalName) {
return null;
}
public TypeInfo getSchemaTypeInfo(){
return null;
}
/**
* Method getSchemaTypeInfo.
* @return TypeInfo
*/
@Override
public TypeInfo getSchemaTypeInfo(){
return null; //PENDING
}
public TypeInfo getElementTypeInfo() {
return null;
}
public TypeInfo getAttributeTypeInfo(int index) {
checkState(false);
return getAttributeType(index);
}