public static class Feature.Template
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This just has fields for representing the properties of a basic Feature. Each sub-interface should provide a template class that inherits off this, and the constructor or factory methods should make a particular feature implementation from the template.
The equals(), hashcode(), toString() and populate() methods are defined such that two templates are equal if all their fields are equal. These are implemented by reflection, and automatically pick up any extra fields added in subclasses.
Modifier and Type | Field and Description |
---|---|
Annotation |
annotation |
Location |
location |
java.lang.String |
source |
Term |
sourceTerm |
java.lang.String |
type |
Term |
typeTerm |
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object b) |
int |
hashCode() |
java.lang.String |
toString() |
public Location location
public java.lang.String type
public java.lang.String source
public Term typeTerm
public Term sourceTerm
public Annotation annotation
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object