public abstract class MetadataProperty extends AbstractMetadata
MetadataPropertyRecord
.Constructor and Description |
---|
MetadataProperty()
Constructor that creates a new Metadata object property and its underlying MetadataPropertyRecord object.
|
MetadataProperty(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
Constructor that creates a new Metadata object and assigns a given MetadataPropertyRecord to its underlying object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.util.Comparator<MetadataProperty> |
getPropertyComparator()
Specify the Comparator to use when determining if a MetadataProperty has been modified and should therefore be persisted to the
database.
|
long |
getPropertyId()
Gets the Metadata Property's ID
|
com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord |
getSourceRecord()
Gets the underlying Liferay source record
|
abstract java.lang.String |
getType()
Gets the implementation-specific type.
|
protected void |
init(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
Initializes this AbstractMetadataObject from a MetadataPropertyRecord
|
void |
setPropertyId(long propertyId)
Sets the Metadata Property's ID
|
void |
setSourceRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord rec)
Sets the underlying Liferay source record
|
java.lang.String |
toString() |
getDescription, getFeature, getKey, getLastUpdated, getLocale, getObjectId, getRel, getSource, getValue, setDescription, setFeature, setKey, setLastUpdated, setLocale, setObjectId, setRel, setSource, setValue
public MetadataProperty()
public MetadataProperty(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
record
- the source MetadataRecordprotected void init(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
record
- the MetadataPropertyRecord from which this Metadata Object should be initializedpublic abstract java.lang.String getType()
getType
in interface Metadata
getType
in class AbstractMetadata
MetadataObject.getType()
public com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord getSourceRecord()
public void setSourceRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord rec)
rec
- the source recordpublic long getPropertyId()
public void setPropertyId(long propertyId)
propertyId
- the property IDpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.Comparator<MetadataProperty> getPropertyComparator()
public java.lang.String toString()
toString
in class AbstractMetadata
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.