All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.xmldbms.maps.factories.XMLNameChecker
XMLNameChecker checks that a name conforms to the rules of the XML Name production. It also checks that new element type names do not collide with existing element type names and that new attribute names do not collide with existing attribute names. Names are modified as follows:
public XMLNameChecker()
public void startNewSession()
This method removes all names from the lists of element type and attribute names created during the previous session. Thus, names are checked for collisions only against names created after this call and before the next call to startNewSession().
public XMLName checkElementTypeName(String prefixes[],
String namespaceURI,
String localName,
String namespacePrefix) throws XMLMiddlewareException
The prefixes argument is designed to be used when constructing element type names from database names. When the element type name is constructed from a column name, it should contain the table, schema, catalog, and database names. When the element type name is constructed from a table name, it should contain the schema, catalog, and database names. If the prefixes argument is null, collisions are resolved by appending numbers starting with 1.
public XMLName checkAttributeName(String prefixes[],
XMLName elementTypeName,
String namespaceURI,
String localName,
String namespacePrefix) throws XMLMiddlewareException
The prefixes argument is designed to be used when constructing attribute names from database names. It should contain the table, schema, catalog, and database names. If the prefixes argument is null, collisions are resolved by appending numbers starting with 1.
All Packages Class Hierarchy This Package Previous Next Index