public class MListProp extends MCollectionProp
Modifier | Constructor and Description |
---|---|
|
MListProp()
Constructs a property object from a list.
|
protected |
MListProp(MListProp other,
Set xprops)
Copy constructor.
|
Modifier and Type | Method and 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 by
MPropHandler.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.
|
clone, cloneProp, contains, getPropXSDType
convertToString, getGrinvCC, isCoordDependent, setCoordDependent
public int getPropArraySize()
getPropArraySize
in class MProp
@Deprecated public String convertToString(String fmt, int flags)
MPropHandler.convertToString(MProp, String)
convertToString
in class MProp
fmt
- the molecule file format or null
flags
- optional conversion flagsIllegalArgumentException
public Object getPropValue()
getPropValue
in class MProp
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 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 String getPropType()
getPropType
in class MProp
public MCollectionProp cloneCollectionProp(Set xprops)
cloneCollectionProp
in class MCollectionProp
xprops
- property objects in this set are not clonedpublic boolean equals(Object o)
equals
in class MCollectionProp
public int hashCode()
hashCode
in class MCollectionProp