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 requiredCDKExceptionpublic void setRGroupNumber(int rGroupNumber)
rGroupNumber - R-Group numberpublic int getRGroupNumber()
IRGroupListgetRGroupNumber in interface IRGroupListpublic void setRestH(boolean restH)
public boolean isRestH()
IRGroupListisRestH in interface IRGroupListpublic void setRequiredRGroupNumber(int rGroupNumberImplicated)
public int getRequiredRGroupNumber()
IRGroupListgetRequiredRGroupNumber in interface IRGroupListpublic List<IRGroup> getRGroups()
IRGroupListgetRGroups in interface IRGroupListpublic String getOccurrence()
getOccurrence in interface IRGroupListpublic void setOccurrence(String occurrence) throws CDKException
occurrence - occurence valueCDKExceptionpublic static boolean isValidOccurrenceSyntax(String occ)
occ - String to validate.public List<Integer> matchOccurence(int maxAttachments)
matchOccurence in interface IRGroupListmaxAttachments - number of attachmentsCopyright © 2022. All rights reserved.