|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.lang.AbstractDirective
net.dpml.library.info.FilterDirective
net.dpml.library.info.SimpleFilterDirective
Simple value filter.
Constructor Summary | |
SimpleFilterDirective(String token,
String value)
Creation of a new anonymous resource directive. |
Method Summary | |
boolean |
equals(Object other)
Compare this object with another for equality. |
String |
getValue(Resource resource)
Return the filter value. |
int |
hashCode()
Compute the hash value. |
Methods inherited from class net.dpml.library.info.FilterDirective |
getToken |
Methods inherited from class net.dpml.lang.AbstractDirective |
equals, hashArray, hashValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleFilterDirective(String token, String value)
token
- the filter tokenvalue
- the substitution valueMethod Detail |
public String getValue(Resource resource) throws ResourceNotFoundException
getValue
in interface Filter
getValue
in class FilterDirective
resource
- the enclosing resource
ResourceNotFoundException
- (never thrown)public boolean equals(Object other)
equals
in class FilterDirective
other
- the other object
public int hashCode()
hashCode
in class FilterDirective
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |