| java.lang.Object com.sun.xml.stream.XMLEntityStorage
XMLEntityStorage | public class XMLEntityStorage (Code) | | author: K.Venugopal SUN Microsystems author: Neeraj Bajaj SUN Microsystems author: Andy Clark, IBM |
Method Summary | |
public void | addExternalEntity(String name, String publicId, String literalSystemId, String baseSystemId) Adds an external entity declaration.
Note: This method ignores subsequent entity
declarations.
Note: The name should be a unique symbol. | public void | addInternalEntity(String name, String text) Adds an internal entity declaration.
Note: This method ignores subsequent entity
declarations.
Note: The name should be a unique symbol. | public void | addUnparsedEntity(String name, String publicId, String systemId, String baseSystemId, String notation) Adds an unparsed entity declaration.
Note: This method ignores subsequent entity
declarations.
Note: The name should be a unique symbol. | public static String | expandSystemId(String systemId) Expands a system id and returns the system id as a URI, if
it can be expanded. | public static String | expandSystemId(String systemId, String baseSystemId) Expands a system id and returns the system id as a URI, if
it can be expanded. | protected static String | fixURI(String str) Fixes a platform dependent filename to standard URI form.
Parameters: str - The string to fix. | public Hashtable | getDeclaredEntities() Returns the hashtable of declared entities.
REVISIT:
This should be done the "right" way by designing a better way to
enumerate the declared entities. | public boolean | isDeclaredEntity(String entityName) Checks whether an entity given by name is declared. | public boolean | isEntityDeclInExternalSubset(String entityName) Checks whether the declaration of an entity given by name is
// in the external subset. | public boolean | isExternalEntity(String entityName) Checks whether an entity given by name is external. | public boolean | isUnparsedEntity(String entityName) Checks whether an entity given by name is unparsed. | public void | reset(PropertyManager propertyManager) | public void | reset() | public void | reset(XMLComponentManager componentManager) Resets the component. |
ERROR_REPORTER | final protected static String ERROR_REPORTER(Code) | | Property identifier: error reporter.
|
WARN_ON_DUPLICATE_ENTITYDEF | final protected static String WARN_ON_DUPLICATE_ENTITYDEF(Code) | | Feature identifier: warn on duplicate EntityDef
|
fErrorReporter | protected XMLErrorReporter fErrorReporter(Code) | | Error reporter. This property identifier is:
http://apache.org/xml/properties/internal/error-reporter
|
fWarnDuplicateEntityDef | protected boolean fWarnDuplicateEntityDef(Code) | | warn on duplicate Entity declaration.
http://apache.org/xml/features/warn-on-duplicate-entitydef
|
XMLEntityStorage | public XMLEntityStorage(PropertyManager propertyManager)(Code) | | Creates a new instance of XMLEntityStorage
|
XMLEntityStorage | public XMLEntityStorage(XMLEntityManager entityManager)(Code) | | Creates a new instance of XMLEntityStorage
|
addExternalEntity | public void addExternalEntity(String name, String publicId, String literalSystemId, String baseSystemId)(Code) | | Adds an external entity declaration.
Note: This method ignores subsequent entity
declarations.
Note: The name should be a unique symbol. The
SymbolTable can be used for this purpose.
Parameters: name - The name of the entity. Parameters: publicId - The public identifier of the entity. Parameters: literalSystemId - The system identifier of the entity. Parameters: baseSystemId - The base system identifier of the entity.This is the system identifier of the entitywhere the entity being added andis used to expand the system identifier whenthe system identifier is a relative URI.When null the system identifier of the firstexternal entity on the stack is used instead. See Also: SymbolTable |
addInternalEntity | public void addInternalEntity(String name, String text)(Code) | | Adds an internal entity declaration.
Note: This method ignores subsequent entity
declarations.
Note: The name should be a unique symbol. The
SymbolTable can be used for this purpose.
Parameters: name - The name of the entity. Parameters: text - The text of the entity. See Also: SymbolTable |
addUnparsedEntity | public void addUnparsedEntity(String name, String publicId, String systemId, String baseSystemId, String notation)(Code) | | Adds an unparsed entity declaration.
Note: This method ignores subsequent entity
declarations.
Note: The name should be a unique symbol. The
SymbolTable can be used for this purpose.
Parameters: name - The name of the entity. Parameters: publicId - The public identifier of the entity. Parameters: systemId - The system identifier of the entity. Parameters: notation - The name of the notation. See Also: SymbolTable |
expandSystemId | public static String expandSystemId(String systemId)(Code) | | Expands a system id and returns the system id as a URI, if
it can be expanded. A return value of null means that the
identifier is already expanded. An exception thrown
indicates a failure to expand the id.
Parameters: systemId - The systemId to be expanded. Returns the URI string representing the expanded systemidentifier. A null value indicates that the givensystem identifier is already expanded. |
expandSystemId | public static String expandSystemId(String systemId, String baseSystemId)(Code) | | Expands a system id and returns the system id as a URI, if
it can be expanded. A return value of null means that the
identifier is already expanded. An exception thrown
indicates a failure to expand the id.
Parameters: systemId - The systemId to be expanded. Returns the URI string representing the expanded systemidentifier. A null value indicates that the givensystem identifier is already expanded. |
fixURI | protected static String fixURI(String str)(Code) | | Fixes a platform dependent filename to standard URI form.
Parameters: str - The string to fix. Returns the fixed URI string. |
getDeclaredEntities | public Hashtable getDeclaredEntities()(Code) | | Returns the hashtable of declared entities.
REVISIT:
This should be done the "right" way by designing a better way to
enumerate the declared entities. For now, this method is needed
by the constructor that takes an XMLEntityManager parameter.
XXX Making this method public, return all the declared entities.
Hashtable hastable containing all the declared entities. |
isDeclaredEntity | public boolean isDeclaredEntity(String entityName)(Code) | | Checks whether an entity given by name is declared.
Parameters: entityName - The name of the entity to check. |
isEntityDeclInExternalSubset | public boolean isEntityDeclInExternalSubset(String entityName)(Code) | | Checks whether the declaration of an entity given by name is
// in the external subset.
Parameters: entityName - The name of the entity to check. |
isExternalEntity | public boolean isExternalEntity(String entityName)(Code) | | Checks whether an entity given by name is external.
Parameters: entityName - The name of the entity to check. |
isUnparsedEntity | public boolean isUnparsedEntity(String entityName)(Code) | | Checks whether an entity given by name is unparsed.
Parameters: entityName - The name of the entity to check. |
reset | public void reset()(Code) | | |
reset | public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code) | | Resets the component. The component can query the component manager
about any features and properties that affect the operation of the
component.
Parameters: componentManager - The component manager. throws: SAXException - Thrown by component on initialization error.For example, if a feature or property isrequired for the operation of the component, thecomponent manager may throw aSAXNotRecognizedException or aSAXNotSupportedException. |
|
|