|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.metadata.AbstractMetadata com.endeca.portal.metadata.MetadataProperty
public abstract class MetadataProperty
Abstract class representing a Metadata Property. This class
provides a basic Metadata implementation for getting and
setting the base fields for a Metadata Property (except for
"Type" which is meant to be implementation-specific) and
storing an instance of the backing Liferay MetadataPropertyRecord
.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
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 |
Methods inherited from class com.endeca.portal.metadata.AbstractMetadata |
---|
getDescription, getFeature, getKey, getLastUpdated, getLocale, getObjectId, getRel, getSource, getValue, setDescription, setFeature, setKey, setLastUpdated, setLocale, setObjectId, setRel, setSource, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetadataProperty()
public MetadataProperty(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
record
- the source MetadataRecordMethod Detail |
---|
protected 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |