Package com.adobe.xfa
Class IDValueMap
- java.lang.Object
-
- com.adobe.xfa.IDValueMap
-
public final class IDValueMap extends Object
While this was once a map used to uniquify IDs and ID references when importing template fragments, we now use a much simpler strategy: for each fragment reference, generate a unique prefix (stored here), and prepend all IDs and ID references in the fragment with the unique prefix. Note: since this class maintains the state of the associated model (once installOnModel() has been called), it is only intended to be used as a stack variable. Any other order of destruction could mess up the state of the model's IDValueMap pointer.
-
-
Constructor Summary
Constructors Constructor Description IDValueMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
String
getPrefix()
List<String>
getReferenceList()
void
installOnModel(Model poModelImpl)
boolean
isActive()
boolean
verifySelfContained(String sHRefExpression, String sNodeContainingHRef, Node srcNode)
Logs a warning if the IDs in this list are not self-contained; meaning there is a "use" reference for which no matching "id" attribute has been seen in the given fragment tree.
-