@PublicAPI public class MHashProp 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 |
---|---|
|
MHashProp()
Constructs a property object from an integer value.
|
protected |
MHashProp(MHashProp other,
java.util.Set xprops)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
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 a value.
|
MProp |
get(java.lang.String key)
Gets a value.
|
java.lang.String |
getKey(int i)
Gets a key.
|
java.util.Map<java.lang.String,MProp> |
getMap()
Gets the map.
|
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 |
put(java.lang.String key,
MProp v)
Puts a value.
|
void |
replace(MProp oldp,
MProp newp)
Replaces or removes a property.
|
int |
size()
Gets the table size.,
|
java.lang.String |
toString()
Overrides Object.toString() to ease debugging.
|
java.util.Iterator |
unorderedIterator()
Gets an iterator for the entries.
|
clone, cloneProp, contains, getPropXSDType
convertToString, getGrinvCC, isCoordDependent, setCoordDependent
public MHashProp()
protected MHashProp(MHashProp 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 flagsMolExportException
public java.lang.Object getPropValue()
getPropValue
in class MProp
public final java.util.Map<java.lang.String,MProp> getMap()
public final int size()
public final java.lang.String getKey(int i)
i
- the indexpublic final MProp get(int i)
i
- the indexpublic final MProp get(java.lang.String key)
key
- the keypublic final void put(java.lang.String key, MProp v)
key
- the keyv
- the valuepublic java.util.Iterator 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 final 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.