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
Property list property.
- Since:
- Marvin 4.1.6, 02/13/2007
- See Also:
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Adds an element.cloneCollectionProp
(Set xprops) Clones the object.convertToString
(String fmt, int flags) Deprecated, for removal: This API element is subject to removal in a future version.boolean
final MProp
get
(int i) Gets the specified element.getList()
Gets the array.int
Gets the array size.Gets the type name of the property.Gets the property value as an object.int
hashCode()
final void
remove
(int i) Removes an element.void
Replaces or removes a property.final void
Sets an element.final int
size()
Gets the array size.toString()
Overrides Object.toString() to ease debugging.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
-
Constructor Details
-
MListProp
public MListProp()Constructs a property object from a list. -
MListProp
Copy constructor.- Parameters:
other
- the other objectxprops
- property objects in this set are not cloned
-
-
Method Details
-
getPropArraySize
public int getPropArraySize()Gets the array size.- Overrides:
getPropArraySize
in classMProp
- Returns:
- the array size
-
convertToString
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public String convertToString(String fmt, int flags) Deprecated, for removal: This API element is subject to removal in a future version.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
Gets the property value as an object.- Specified by:
getPropValue
in classMProp
- Returns:
- the Integer
-
getList
Gets the array.- Returns:
- the value
-
size
public final int size()Gets the array size.- Returns:
- the array size
-
get
Gets the specified element.- Parameters:
i
- the index- Returns:
- the value
-
set
Sets an element.- Parameters:
i
- the indexp
- the value
-
remove
public final void remove(int i) Removes an element.- Parameters:
i
- the index
-
add
Adds an element.- Parameters:
p
- the value
-
unorderedIterator
Gets an iterator for the entries.- Specified by:
unorderedIterator
in classMCollectionProp
- Returns:
- the iterator
-
replace
Replaces or removes a property.- Specified by:
replace
in classMCollectionProp
- Parameters:
oldp
- the old objectnewp
- the new object ornull
to remove
-
getPropType
Gets the type name of the property.- Specified by:
getPropType
in classMProp
- Returns:
- "MListProp"
-
cloneCollectionProp
Clones the object.- Specified by:
cloneCollectionProp
in classMCollectionProp
- Parameters:
xprops
- property objects in this set are not cloned- Returns:
- the clone
-
equals
- Overrides:
equals
in classMCollectionProp
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMCollectionProp
-
toString
Description copied from class:MProp
Overrides Object.toString() to ease debugging. Returns a string consisting of the classname (without the package name!), the at-sign character `@
', and the unsigned hexadecimal representation of the hash code of the object.
-
MPropHandler.convertToString(MProp, String)