@PublicAPI public class MListProp extends MCollectionProp
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
Modifier | Constructor and Description |
---|---|
|
MListProp()
Constructs a property object from a list.
|
protected |
MListProp(MListProp other,
java.util.Set xprops)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MProp p)
Adds an element.
|
MCollectionProp |
cloneCollectionProp(java.util.Set xprops)
Clones the object.
|
java.lang.String |
convertToString(java.lang.String fmt,
int flags)
Deprecated.
As of Marvin 5.7, replaced by
MPropHandler.convertToString(MProp, String) |
boolean |
equals(java.lang.Object o) |
MProp |
get(int i)
Gets the specified element.
|
java.util.List<MProp> |
getList()
Gets the array.
|
int |
getPropArraySize()
Gets the array size.
|
java.lang.String |
getPropType()
Gets the type name of the property.
|
java.lang.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.
|
java.lang.String |
toString()
Overrides Object.toString() to ease debugging.
|
java.util.Iterator<MProp> |
unorderedIterator()
Gets an iterator for the entries.
|
clone, cloneProp, contains, getPropXSDType
convertToString, getGrinvCC, isCoordDependent, setCoordDependent
public MListProp()
protected MListProp(MListProp other, java.util.Set xprops)
other
- the other objectxprops
- property objects in this set are not clonedpublic int getPropArraySize()
getPropArraySize
in class MProp
@Deprecated public java.lang.String convertToString(java.lang.String fmt, int flags)
MPropHandler.convertToString(MProp, String)
convertToString
in class MProp
fmt
- the molecule file format or null
flags
- optional conversion flagsjava.lang.IllegalArgumentException
public java.lang.Object getPropValue()
getPropValue
in class MProp
public final java.util.List<MProp> getList()
public final int size()
public final MProp get(int i)
i
- the indexpublic final void set(int i, MProp p)
i
- the indexp
- the valuepublic final void remove(int i)
i
- the indexpublic final void add(MProp p)
p
- the valuepublic java.util.Iterator<MProp> unorderedIterator()
unorderedIterator
in class MCollectionProp
public void replace(MProp oldp, MProp newp)
replace
in class MCollectionProp
oldp
- the old objectnewp
- the new object or null
to removepublic java.lang.String getPropType()
getPropType
in class MProp
public MCollectionProp cloneCollectionProp(java.util.Set xprops)
cloneCollectionProp
in class MCollectionProp
xprops
- property objects in this set are not clonedpublic boolean equals(java.lang.Object o)
equals
in class MCollectionProp
public int hashCode()
hashCode
in class MCollectionProp
public java.lang.String toString()
MProp
@
', and the unsigned
hexadecimal representation of the hash code of the object.