Package org.biojava.bio.seq
Class RemoteFeature.Region
- java.lang.Object
-
- org.biojava.bio.seq.RemoteFeature.Region
-
- Enclosing interface:
- RemoteFeature
public static final class RemoteFeature.Region extends java.lang.Object
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location
getLocation()
Retrieve the Location of the Region.java.lang.String
getSeqID()
Return the remote Sequence ID if this Region is on another Sequence (isRemote will return true), null otherwise.boolean
isRemote()
Return whether this Region is remote or local.
-
-
-
Constructor Detail
-
Region
public Region(Location location, java.lang.String seqID, boolean isRemote)
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 Detail
-
getLocation
public Location getLocation()
Retrieve the Location of the Region.- Returns:
- the Location of this Region
-
getSeqID
public java.lang.String 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
public boolean 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
-
-