public static interface XMLResource.ResourceEntityHandler
ResourceEntityHandlerImpl
Modifier and Type | Method and Description |
---|---|
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.
|
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()