|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface XMLResource.ResourceEntityHandler
An interface for a resource entity handler. It is used during load to record entities and is used during save to assign entity names to values representing cross resource URI references.
ResourceEntityHandlerImpl
Method Summary | |
---|---|
java.lang.String |
getEntityName(java.lang.String entityValue)
Returns the name associated with the entity value; a new name will be generated if there is not yet a name associated with the entity value. |
java.util.Map<java.lang.String,java.lang.String> |
getNameToValueMap()
Returns the map of entity names to entity values to be recorded in the document during save. |
void |
handleEntity(java.lang.String entityName,
java.lang.String entityValue)
Records the entity name to entity value mapping. |
void |
reset()
Resets the state of the entity handler when a resource is first loaded or is reloaded. |
Method Detail |
---|
void reset()
void handleEntity(java.lang.String entityName, java.lang.String entityValue)
entityName
- the name of the entity.entityValue
- the associated value of the entity.java.lang.String getEntityName(java.lang.String entityValue)
entityValue
- the entity value for which a named entity is needed.
java.util.Map<java.lang.String,java.lang.String> getNameToValueMap()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |