Package chemaxon.struc
Class MProp
java.lang.Object
chemaxon.struc.MProp
- All Implemented Interfaces:
- Serializable,- Cloneable
- Direct Known Subclasses:
- MBooleanProp,- MCollectionProp,- MDocument.Prop,- MDoubleArrayProp,- MDoubleProp,- MFontProp,- MHCoords3DProp,- MIntegerArrayProp,- MIntegerProp,- MMoleculeProp,- MObjectProp,- MStringProp
Property base class.
- Since:
- Marvin 4.1, 11/20/2005
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intCoordinate dependent property.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract MPropClones the object.final StringconvertToString(String fmt) Deprecated, for removal: This API element is subject to removal in a future version.abstract StringconvertToString(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).protected final longGets the graph invariant change count at the moment of creation.intGets the array size.abstract StringGets the type name of the property.abstract ObjectGets the property value as an object.abstract StringGets the XSD type name of the property.final booleanTests whether the property depends on the molecular coordinates.protected final voidsetCoordDependent(long gcc) Sets the property as coordinate dependent.toString()Overrides Object.toString() to ease debugging.
- 
Field Details- 
TYPE_CONFORMER_DESCRIPTOR- See Also:
 
- 
TYPE_VOLUMETRIC_DATA- See Also:
 
- 
TYPE_COLLECTION_HASH- See Also:
 
- 
TYPE_COLLECTION_LIST- See Also:
 
- 
TYPE_ARRAY_BYTE- See Also:
 
- 
TYPE_ARRAY_DOUBLE- See Also:
 
- 
TYPE_ARRAY_INTEGER- See Also:
 
- 
TYPE_BOOLEAN- See Also:
 
- 
TYPE_DOUBLE- See Also:
 
- 
TYPE_INTEGER- See Also:
 
- 
TYPE_STRING- See Also:
 
- 
TYPE_FONT- See Also:
 
- 
TYPE_OBJECT- See Also:
 
- 
TYPE_MOLECULE- See Also:
 
- 
TYPE_MDOCUMENT_PROP- See Also:
 
- 
TYPE_3D_COORDS- See Also:
 
- 
COORDDEPpublic static final int COORDDEPCoordinate dependent property.- See Also:
 
 
- 
- 
Constructor Details- 
MProppublic MProp()
 
- 
- 
Method Details- 
getPropArraySizepublic int getPropArraySize()Gets the array size. It should return the array size, or -1 if the property is not an array.- Returns:
- -1 in default implementation
 
- 
convertToString@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public abstract 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.- Parameters:
- fmt- the molecule file format or- null
- flags- optional conversion flags
- Returns:
- the string
- Since:
- Marvin 5.0, 11/05/2007
 
- 
convertToString@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public final String convertToString(String fmt) 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.- Parameters:
- fmt- the molecule file format or- null
- Returns:
- the string
- Since:
- Marvin 4.1.7, 04/10/2007
 
- 
getPropValueGets the property value as an object.- Returns:
- the object
 
- 
getPropTypeGets the type name of the property.- Returns:
- the name
 
- 
getPropXSDTypeGets the XSD type name of the property.- Returns:
- the name
 
- 
clonePropClones the object.- Returns:
- the clone
 
- 
isCoordDependentpublic final boolean isCoordDependent()Tests whether the property depends on the molecular coordinates.- Returns:
- trueif the property depends on the molecular coordinates,- falseotherwise
 
- 
getGrinvCCprotected final long getGrinvCC()Gets the graph invariant change count at the moment of creation.- Returns:
- the graph invariant change count
- Since:
- Marvin 4.1.3, 11/09/2006
 
- 
setCoordDependentprotected final void setCoordDependent(long gcc) Sets the property as coordinate dependent.- Parameters:
- gcc- the graph invariant change count
- Since:
- Marvin 4.1.3, 11/09/2006
 
- 
toStringOverrides 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)