Package org.openscience.cdk.iupac.parser
Class AttachedGroup
java.lang.Object
org.openscience.cdk.iupac.parser.AttachedGroup
Holds data on a specific functional group or substituent.
- Author:
- Stephen Tomkinson
- Source code:
- main
- Requires:
- ant1.6
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of FunctionalGroupAttachedGroup
(List<Token> locations, int length) Creates a new instance of AttachedGroup with an int denoting the length of the substituent chainAttachedGroup
(List<Token> locations, String name) Creates a new instance of AttachedGroup with a Sting denoting the functional group -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for property length.Getter for property locations.getName()
Getter for property name.void
setLength
(int length) Setter for property length.void
setLocations
(List<Token> locations) Setter for property locations.void
Setter for property name.toString()
A debug string which represents the contents of the class.
-
Constructor Details
-
AttachedGroup
public AttachedGroup()Creates a new instance of FunctionalGroup -
AttachedGroup
Creates a new instance of AttachedGroup with a Sting denoting the functional group -
AttachedGroup
Creates a new instance of AttachedGroup with an int denoting the length of the substituent chain
-
-
Method Details
-
getName
Getter for property name.- Returns:
- Value of property name.
-
setName
Setter for property name.- Parameters:
name
- New value of property name.
-
getLocations
Getter for property locations.- Returns:
- Value of property locations.
-
setLocations
Setter for property locations.- Parameters:
locations
- New value of property locations.
-
toString
A debug string which represents the contents of the class. -
getLength
public int getLength()Getter for property length.- Returns:
- Value of property length.
-
setLength
public void setLength(int length) Setter for property length.- Parameters:
length
- New value of property length.
-