gate.jape.constraint
Class MetaPropertyAccessor
java.lang.Object
gate.jape.constraint.MetaPropertyAccessor
- All Implemented Interfaces:
- AnnotationAccessor, Serializable
- Direct Known Subclasses:
- LengthAccessor, SimpleAnnotationAccessor, StringAccessor, TestPR.TestAnnotationAccessor
public abstract class MetaPropertyAccessor
- extends Object
- implements AnnotationAccessor
Accessor which returns a particular property or meta-property of an
annotation, such as length or string.
- Version:
- $Revision$
- Author:
- esword
- See Also:
- Serialized Form
Field Summary |
protected static org.apache.log4j.Logger |
log
|
Method Summary |
boolean |
equals(Object obj)
|
abstract Object |
getKey()
Sub-classes should return the name of the meta-property which they implement. |
int |
hashCode()
|
void |
setKey(Object key)
Store a key or name for the accessor to reference when it attempts
to obtain the value of an object. |
String |
toString()
|
log
protected static final org.apache.log4j.Logger log
MetaPropertyAccessor
public MetaPropertyAccessor()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
setKey
public void setKey(Object key)
- Description copied from interface:
AnnotationAccessor
- Store a key or name for the accessor to reference when it attempts
to obtain the value of an object. Different implementors will have
different uses for the key. For example, it could be the name of
the feature that should be returned. It could also be the name of a
property to invoke on the Annotation object.
- Specified by:
setKey
in interface AnnotationAccessor
getKey
public abstract Object getKey()
- Sub-classes should return the name of the meta-property which they implement.
- Specified by:
getKey
in interface AnnotationAccessor