chemaxon.struc.prop
Class MCollectionProp

java.lang.Object
  extended by chemaxon.struc.MProp
      extended by chemaxon.struc.prop.MCollectionProp
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
MHashProp, MListProp

public abstract class MCollectionProp
extends MProp

Collection of properties.

Since:
Marvin 4.1.6, 02/15/2007
Version:
4.1.6, 02/21/2007
Author:
Peter Csizmadia
See Also:
Serialized Form

Field Summary
 
Fields inherited from class chemaxon.struc.MProp
CONV_SELFREF, COORDDEP
 
Constructor Summary
MCollectionProp()
           
 
Method Summary
 java.lang.Object clone()
          Clones the object.
abstract  MCollectionProp cloneCollectionProp(java.util.Set xprops)
          Clones the object.
 MProp cloneProp()
          Clones the object.
 boolean contains(MProp p)
          Tests whether the collection contains the specified property.
 boolean equals(java.lang.Object o)
           
 java.lang.String getPropXSDType()
          Gets the XSD type name of the property.
abstract  void replace(MProp oldp, MProp newp)
          Replaces or removes a property.
abstract  java.util.Iterator unorderedIterator()
          Gets an unordered iterator for the entries.
 
Methods inherited from class chemaxon.struc.MProp
convertToString, convertToString, getGrinvCC, getPropArraySize, getPropType, getPropValue, isCoordDependent, setCoordDependent, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MCollectionProp

public MCollectionProp()
Method Detail

unorderedIterator

public abstract java.util.Iterator unorderedIterator()
Gets an unordered iterator for the entries.

Returns:
the iterator

contains

public final boolean contains(MProp p)
Tests whether the collection contains the specified property.

Parameters:
p - the property
Returns:
true if the collection contains it, false otherwise

replace

public abstract void replace(MProp oldp,
                             MProp newp)
Replaces or removes a property.

Parameters:
oldp - the old object
newp - the new object or null to remove

getPropXSDType

public java.lang.String getPropXSDType()
Gets the XSD type name of the property.

Specified by:
getPropXSDType in class MProp
Returns:
"ENTITY"

cloneCollectionProp

public abstract MCollectionProp cloneCollectionProp(java.util.Set xprops)
Clones the object.

Parameters:
xprops - property objects in this set are not cloned
Returns:
the clone

cloneProp

public final MProp cloneProp()
Clones the object.

Specified by:
cloneProp in class MProp
Returns:
the clone

clone

public final java.lang.Object clone()
Clones the object.

Overrides:
clone in class java.lang.Object
Returns:
the clone

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object