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 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.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.
-
-
-
Method Detail
-
getLocation
public Location getLocation()
Retrieve the Location of the Region.- Returns:
- the Location of this Region
-
getSeqID
public 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
-
-