Methods Summary |
---|
public int | getCurrentPointer()
return fCountSchemaName;
|
public com.sun.org.apache.xerces.internal.xinclude.XPointerSchema | getDefaultSchema()
if(fDefaultXPointerSchema == null)
fDefaultXPointerSchema = new XPointerElementHandler();
return fDefaultXPointerSchema;
|
public java.lang.String | getEscapedURI(java.lang.String URI)
return URI;
|
public com.sun.org.apache.xerces.internal.xinclude.XPointerSchema | getNextXPointerSchema()
int i=fCountSchemaName;
if(fSchemaPointerName == null){
getSchemaNames();
}
if(fDefaultXPointerSchema == null){
getDefaultSchema();
}
if(fDefaultXPointerSchema.getXpointerSchemaName().equalsIgnoreCase(fSchemaPointerName[i])){
fDefaultXPointerSchema.reset();
fDefaultXPointerSchema.setXPointerSchemaPointer(fSchemaPointerURI[i]);
fCountSchemaName = ++i;
return getDefaultSchema();
}
if(fXPointerSchema == null){
fCountSchemaName = ++i;
return null;
}
int fschemalength = fXPointerSchema.length;
for(;fSchemaPointerName[i] != null; i++){
for(int j=0; j<fschemalength; j++ ){
if(fSchemaPointerName[i].equalsIgnoreCase(fXPointerSchema[j].getXpointerSchemaName())){
fXPointerSchema[j].setXPointerSchemaPointer(fSchemaPointerURI[i]);
fCountSchemaName = ++i;
return fXPointerSchema[j];
}
}
if(fSchemaNotAvailable == null)
fSchemaNotAvailable = new Stack();
fSchemaNotAvailable.push(fSchemaPointerName[i]);
}
return null;
|
public int | getSchemaCount()
return schemaLength;
|
public void | getSchemaNames()
int count =0;
int index =0, lastindex =0;
int schemapointerindex =0, schemapointerURIindex=0;
char c;
int length = fSchemaPointer.length();
fSchemaPointerName = new String [5];
fSchemaPointerURI = new String [5];
index = fSchemaPointer.indexOf('(");
if( index <= 0)
return;
fSchemaPointerName[schemapointerindex++] = fSchemaPointer.substring(0, index++).trim();
lastindex = index;
String tempURI = null;
count++;
while(index < length){
c = fSchemaPointer.charAt(index);
if(c == '(")
count++;
if(c == ')")
count--;
if(count==0 ){
tempURI = fSchemaPointer.substring(lastindex, index).trim();
fSchemaPointerURI[schemapointerURIindex++] = getEscapedURI(tempURI);
lastindex = index;
if((index = fSchemaPointer.indexOf('(", lastindex)) != -1){
fSchemaPointerName[schemapointerindex++] = fSchemaPointer.substring(lastindex+1, index).trim();
count++;
lastindex = index+1;
}
else{
index = lastindex;
}
}
index++;
}
schemaLength = schemapointerURIindex -1;
|
public void | reset()
fXPointerSchema = null;
fXPointerSchema = null;
fCountSchemaName = 0;
schemaLength = 0;
fSchemaPointerName = null;
fSchemaPointerURI = null;
fDefaultXPointerSchema = null;
fCurrentSchemaPointer = null;
|
public void | setSchemaPointer(java.lang.String schemaPointer)
fSchemaPointer = schemaPointer;
|
public void | setXPointerSchema(com.sun.org.apache.xerces.internal.xinclude.XPointerSchema[] xpointerschema)
fXPointerSchema = xpointerschema;
|