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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdds 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.booleanfinal MPropget(int i) Gets the specified element.getList()Gets the array.intGets the array size.Gets the type name of the property.Gets the property value as an object.inthashCode()final voidremove(int i) Removes an element.voidReplaces or removes a property.final voidSets an element.final intsize()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, getPropXSDTypeMethods 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:
getPropArraySizein 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:
convertToStringin classMProp- Parameters:
fmt- the molecule file format ornullflags- 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:
getPropValuein 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:
unorderedIteratorin classMCollectionProp- Returns:
- the iterator
-
replace
Replaces or removes a property.- Specified by:
replacein classMCollectionProp- Parameters:
oldp- the old objectnewp- the new object ornullto remove
-
getPropType
Gets the type name of the property.- Specified by:
getPropTypein classMProp- Returns:
- "MListProp"
-
cloneCollectionProp
Clones the object.- Specified by:
cloneCollectionPropin classMCollectionProp- Parameters:
xprops- property objects in this set are not cloned- Returns:
- the clone
-
equals
- Overrides:
equalsin classMCollectionProp
-
hashCode
public int hashCode()- Overrides:
hashCodein classMCollectionProp
-
toString
Description copied from class:MPropOverrides 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)