com.endeca.portal.metadata.attributes
Class AttributeSetDisplayName

java.lang.Object
  extended by com.endeca.portal.metadata.AbstractMetadata
      extended by com.endeca.portal.metadata.MetadataProperty
          extended by com.endeca.portal.metadata.attributes.AttributeSetDisplayName
All Implemented Interfaces:
Metadata

public class AttributeSetDisplayName
extends MetadataProperty

Represents a localized display name property of an attribute set.

Author:
Endeca Technologies, Inc.

Constructor Summary
AttributeSetDisplayName()
          Constructor: initializes the object with an ID of -1
AttributeSetDisplayName(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
          Constructor that initializes the object from a MetadataRecord.
AttributeSetDisplayName(java.lang.String displayName, java.lang.String locale)
          Convenience constructor that initializes the object for a specified locale.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if the provided display name property object's Metadata Object ID, locale and display name value are the same.
 java.lang.String getType()
          Returns "ATTR_SET_DISPLAY_NAME"
 
Methods inherited from class com.endeca.portal.metadata.MetadataProperty
getPropertyId, getSourceRecord, init, setPropertyId, setSourceRecord
 
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

AttributeSetDisplayName

public AttributeSetDisplayName()
Constructor: initializes the object with an ID of -1


AttributeSetDisplayName

public AttributeSetDisplayName(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
Constructor that initializes the object from a MetadataRecord. The underlying object is not persisted to the database; that must be done explicitly if you want it to be persisted.

Parameters:
record - the source MetadataRecord

AttributeSetDisplayName

public AttributeSetDisplayName(java.lang.String displayName,
                               java.lang.String locale)
Convenience constructor that initializes the object for a specified locale.

Parameters:
displayName - the display name
locale - the locale
Method Detail

getType

public java.lang.String getType()
Returns "ATTR_SET_DISPLAY_NAME"

Specified by:
getType in interface Metadata
Specified by:
getType in class MetadataProperty
Returns:
the type of metadata this object represents
See Also:
Metadata.getType()

equals

public boolean equals(java.lang.Object obj)
Returns true if the provided display name property object's Metadata Object ID, locale and display name value are the same.

Overrides:
equals in class MetadataProperty