Package org.biojava.bio.seq
Class RemoteFeature.Region
java.lang.Object
org.biojava.bio.seq.RemoteFeature.Region
- Enclosing interface:
RemoteFeature
A tuple of Location and sequence ID.
For local locations, the Region is just a wrapper for a Location. For remote Regions, it also contains a String representing the Sequence ID of the remote Location.
- Since:
- 1.1
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Region
Create a new Region.- Parameters:
location
- the Location of the RegionseqID
- the ID of the Sequence containing the Location, or null if it is a local Region
-
-
Method Details
-
getLocation
Retrieve the Location of the Region.- Returns:
- the Location of this Region
-
getSeqID
Return the remote Sequence ID if this Region is on another Sequence (isRemote will return true), null otherwise.- Returns:
- the ID of the remote Sequence containing this Region
-
isRemote
Return whether this Region is remote or local.If this returns true, getSeqID() will return the ID of the remote sequence. Otherwise, getSeqID() will return null.
- Returns:
- true if this is a remote Region, false otherwise
-