public class RGroupList extends Object implements IRGroupList
RGroupQuery
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_OCCURRENCE
Default value for occurrence field.
|
Constructor and Description |
---|
RGroupList(int rGroupNumber)
Default constructor.
|
RGroupList(int rGroupNumber,
boolean restH,
String occurrence,
int requiredRGroupNumber)
Constructor with attributes given.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getOccurrence()
Returns the occurrence value.
|
int |
getRequiredRGroupNumber()
Access the dependant Rgroup number if R1 then R2.
|
int |
getRGroupNumber()
Get the Rgroup number, for example R1 => 1.
|
List<IRGroup> |
getRGroups()
Access the list of possible RGroups.
|
int |
hashCode() |
boolean |
isRestH()
Indicates that sites labeled with this Rgroup may only be
substituted with a member of the Rgroup or with hydrogen.
|
static boolean |
isValidOccurrenceSyntax(String occ)
Validates the occurrence value.
|
List<Integer> |
matchOccurence(int maxAttachments)
Matches the 'occurrence' condition with a provided maximum number of
RGroup attachments.
|
void |
setOccurrence(String occurrence)
Picky setter for occurrence fields.
|
void |
setRequiredRGroupNumber(int rGroupNumberImplicated) |
void |
setRestH(boolean restH) |
void |
setRGroupNumber(int rGroupNumber)
Setter for rGroupNumber, checks for valid range.
|
void |
setRGroups(List<IRGroup> rGroups) |
public static final String DEFAULT_OCCURRENCE
public RGroupList(int rGroupNumber)
public RGroupList(int rGroupNumber, boolean restH, String occurrence, int requiredRGroupNumber) throws CDKException
rGroupNumber
- R-Group numberrestH
- restHoccurrence
- occurrencerequiredRGroupNumber
- number of other R-Group requiredCDKException
public void setRGroupNumber(int rGroupNumber)
rGroupNumber
- R-Group numberpublic int getRGroupNumber()
IRGroupList
getRGroupNumber
in interface IRGroupList
public void setRestH(boolean restH)
public boolean isRestH()
IRGroupList
isRestH
in interface IRGroupList
public void setRequiredRGroupNumber(int rGroupNumberImplicated)
public int getRequiredRGroupNumber()
IRGroupList
getRequiredRGroupNumber
in interface IRGroupList
public List<IRGroup> getRGroups()
IRGroupList
getRGroups
in interface IRGroupList
public String getOccurrence()
getOccurrence
in interface IRGroupList
public void setOccurrence(String occurrence) throws CDKException
occurrence
- occurence valueCDKException
public static boolean isValidOccurrenceSyntax(String occ)
occ
- String to validate.public List<Integer> matchOccurence(int maxAttachments)
matchOccurence
in interface IRGroupList
maxAttachments
- number of attachmentsCopyright © 2022. All rights reserved.