|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openharbor.beck.ObjectOHXPathMap.Policy
Controls the behavior of an ObjectOHXPathMap. This class is not thread-safe; an instance should not be used by multiple threads.
Constructor Summary | |
ObjectOHXPathMap.Policy()
|
Method Summary | |
OHXPathElement |
getPathElement(java.lang.Object parent,
java.lang.Object child,
XMLName elementName)
Compute an OHXPathElement for a given XML element. |
boolean |
isPossibleReferent(java.lang.Object candidate)
Whether a given object's XPath is desired. |
void |
restrictReferentClass(java.util.Collection classes)
Subsequently, isPossibleReferent(candidate)==true only if the given Collection contains the candidate's class, or a base class or interface of the object's class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectOHXPathMap.Policy()
Method Detail |
public boolean isPossibleReferent(java.lang.Object candidate)
public void restrictReferentClass(java.util.Collection classes) throws java.lang.ClassCastException
classes
- contains the Class objects that will restrict the map keys
java.lang.ClassCastException
- the given Collection contains a non-Classpublic OHXPathElement getPathElement(java.lang.Object parent, java.lang.Object child, XMLName elementName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |