Package chemaxon.struc.prop
Class MListProp
- java.lang.Object
-
- chemaxon.struc.MProp
-
- chemaxon.struc.prop.MCollectionProp
-
- chemaxon.struc.prop.MListProp
-
- All Implemented Interfaces:
Serializable
,Cloneable
@PublicAPI public class MListProp extends MCollectionProp
Property list property.- Since:
- Marvin 4.1.6, 02/13/2007
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class chemaxon.struc.MProp
COORDDEP, TYPE_3D_COORDS, TYPE_ARRAY_BYTE, TYPE_ARRAY_DOUBLE, TYPE_ARRAY_INTEGER, TYPE_BOOLEAN, TYPE_COLLECTION_HASH, TYPE_COLLECTION_LIST, TYPE_CONFORMER_DESCRIPTOR, TYPE_DOUBLE, TYPE_FONT, TYPE_INTEGER, TYPE_MDOCUMENT_PROP, TYPE_MOLECULE, TYPE_OBJECT, TYPE_STRING, TYPE_VOLUMETRIC_DATA
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(MProp p)
Adds an element.MCollectionProp
cloneCollectionProp(Set xprops)
Clones the object.String
convertToString(String fmt, int flags)
Deprecated.As of Marvin 5.7, replaced byMPropHandler.convertToString(MProp, String)
boolean
equals(Object o)
MProp
get(int i)
Gets the specified element.List<MProp>
getList()
Gets the array.int
getPropArraySize()
Gets the array size.String
getPropType()
Gets the type name of the property.Object
getPropValue()
Gets the property value as an object.int
hashCode()
void
remove(int i)
Removes an element.void
replace(MProp oldp, MProp newp)
Replaces or removes a property.void
set(int i, MProp p)
Sets an element.int
size()
Gets the array size.String
toString()
Overrides Object.toString() to ease debugging.Iterator<MProp>
unorderedIterator()
Gets an iterator for the entries.-
Methods inherited from class chemaxon.struc.prop.MCollectionProp
clone, cloneProp, contains, getPropXSDType
-
Methods inherited from class chemaxon.struc.MProp
convertToString, getGrinvCC, isCoordDependent, setCoordDependent
-
-
-
-
Method Detail
-
getPropArraySize
public int getPropArraySize()
Gets the array size.- Overrides:
getPropArraySize
in classMProp
- Returns:
- the array size
-
convertToString
@Deprecated public String convertToString(String fmt, int flags)
Deprecated.As of Marvin 5.7, replaced byMPropHandler.convertToString(MProp, String)
Converts the property to text format.- Specified by:
convertToString
in classMProp
- Parameters:
fmt
- the molecule file format ornull
flags
- optional conversion flags- Returns:
- the string
- Throws:
IllegalArgumentException
- Since:
- Marvin 5.0, 11/05/2007
-
getPropValue
public Object getPropValue()
Gets the property value as an object.- Specified by:
getPropValue
in classMProp
- Returns:
- the Integer
-
size
public final int size()
Gets the array size.- Returns:
- the array size
-
get
public final MProp get(int i)
Gets the specified element.- Parameters:
i
- the index- Returns:
- the value
-
set
public final void set(int i, MProp p)
Sets an element.- Parameters:
i
- the indexp
- the value
-
remove
public final void remove(int i)
Removes an element.- Parameters:
i
- the index
-
add
public final void add(MProp p)
Adds an element.- Parameters:
p
- the value
-
unorderedIterator
public Iterator<MProp> unorderedIterator()
Gets an iterator for the entries.- Specified by:
unorderedIterator
in classMCollectionProp
- Returns:
- the iterator
-
replace
public void replace(MProp oldp, MProp newp)
Replaces or removes a property.- Specified by:
replace
in classMCollectionProp
- Parameters:
oldp
- the old objectnewp
- the new object ornull
to remove
-
getPropType
public String getPropType()
Gets the type name of the property.- Specified by:
getPropType
in classMProp
- Returns:
- "MListProp"
-
cloneCollectionProp
public MCollectionProp cloneCollectionProp(Set xprops)
Clones the object.- Specified by:
cloneCollectionProp
in classMCollectionProp
- Parameters:
xprops
- property objects in this set are not cloned- Returns:
- the clone
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classMCollectionProp
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMCollectionProp
-
-