Methods Summary |
---|
public void | addId(java.lang.String name)
fIdTable.put(name, fNullValue);
|
public void | addIdRef(java.lang.String name)
fIdRefTable.put(name, fNullValue);
|
public java.lang.String | checkIDRefID()return null if all IDREF values have a corresponding ID value;
otherwise return the first IDREF value without a matching ID value.
Enumeration en = fIdRefTable.keys();
String key;
while (en.hasMoreElements()) {
key = (String)en.nextElement();
if (!fIdTable.containsKey(key)) {
return key;
}
}
return null;
|
public java.lang.String | getSymbol(java.lang.String symbol)
if (fSymbolTable != null)
return fSymbolTable.addSymbol(symbol);
// if there is no symbol table, we return java-internalized string,
// because symbol table strings are also java-internalzied.
// this guarantees that the returned string from this method can be
// compared by reference with other symbol table string. -SG
return symbol.intern();
|
public java.lang.String | getURI(java.lang.String prefix)
if (fNamespaceContext !=null) {
return fNamespaceContext.getURI(prefix);
}
return null;
|
public boolean | isEntityDeclared(java.lang.String name)
if (fEntityState !=null) {
return fEntityState.isEntityDeclared(getSymbol(name));
}
return false;
|
public boolean | isEntityUnparsed(java.lang.String name)
if (fEntityState !=null) {
return fEntityState.isEntityUnparsed(getSymbol(name));
}
return false;
|
public boolean | isIdDeclared(java.lang.String name)
return fIdTable.containsKey(name);
|
public boolean | needExtraChecking()
return fExtraChecking;
|
public boolean | needFacetChecking()
return fFacetChecking;
|
public boolean | needToNormalize()
return fNormalize;
|
public void | reset()
fExtraChecking = true;
fFacetChecking = true;
fNamespaces = true;
fIdTable.clear();
fIdRefTable.clear();
fEntityState = null;
fNamespaceContext = null;
fSymbolTable = null;
|
public void | resetIDTables()The same validation state can be used to validate more than one (schema)
validation roots. Entity/Namespace/Symbol are shared, but each validation
root needs its own id/idref tables. So we need this method to reset only
the two tables.
fIdTable.clear();
fIdRefTable.clear();
|
public void | setEntityState(EntityState state)
fEntityState = state;
|
public void | setExtraChecking(boolean newValue)
//
// public methods
//
fExtraChecking = newValue;
|
public void | setFacetChecking(boolean newValue)
fFacetChecking = newValue;
|
public void | setNamespaceSupport(org.apache.xerces.xni.NamespaceContext namespace)
fNamespaceContext = namespace;
|
public void | setNormalizationRequired(boolean newValue)
fNormalize = newValue;
|
public void | setSymbolTable(org.apache.xerces.util.SymbolTable sTable)
fSymbolTable = sTable;
|
public void | setUsingNamespaces(boolean newValue)
fNamespaces = newValue;
|
public boolean | useNamespaces()
return fNamespaces;
|