public class RGroupList extends Object
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() |
int |
getRGroupNumber() |
List<RGroup> |
getRGroups() |
int |
hashCode() |
boolean |
isRestH() |
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<RGroup> 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()
public void setRestH(boolean restH)
public boolean isRestH()
public void setRequiredRGroupNumber(int rGroupNumberImplicated)
public int getRequiredRGroupNumber()
public String getOccurrence()
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)
maxAttachments
- number of attachmentsCopyright © 2017. All Rights Reserved.