Package org.biojava.bio.seq
Class Feature.Template
- java.lang.Object
-
- org.biojava.bio.seq.Feature.Template
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
RichFeature.Template
,StrandedFeature.Template
- Enclosing interface:
- Feature
public static class Feature.Template extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
Template class for a plain feature.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.
- Author:
- Thomas Down, Matthew Pocock
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Annotation
annotation
Location
location
java.lang.String
source
Term
sourceTerm
java.lang.String
type
Term
typeTerm
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
boolean
equals(java.lang.Object b)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
location
public Location location
-
type
public java.lang.String type
-
source
public java.lang.String source
-
typeTerm
public Term typeTerm
-
sourceTerm
public Term sourceTerm
-
annotation
public Annotation annotation
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object b)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-