com.endeca.portal.metadata.attributes
Class AttributeSetMapping

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

Deprecated.

@Deprecated
public class AttributeSetMapping
extends MetadataProperty

Represents an attribute mapping to an attribute set.

Author:
Endeca Technologies, Inc.

Nested Class Summary
 class AttributeSetMapping.AttributeSetMappingComparator
          Deprecated. Comparator used when inspecting properties during attribute set persistence.
 
Constructor Summary
AttributeSetMapping()
          Deprecated. Constructor: initializes the object with an ID of -1
AttributeSetMapping(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
          Deprecated. Constructor that initializes the object from a MetadataRecord.
AttributeSetMapping(java.lang.String attributeName)
          Deprecated. Convenience constructor that initializes the object for a specified attribute.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Deprecated. Returns true if the provided display name property object's Metadata Object ID and mapping value (the attribute name) are the same.
 java.lang.String getAttributeName()
          Deprecated. Returns the "value" of the attribute mapping, which is the name of the attribute that this mapping represents
 java.util.Comparator<MetadataProperty> getPropertyComparator()
          Deprecated. Specify the Comparator to use when determining if a MetadataProperty has been modified and should therefore be persisted to the database.
 java.lang.String getType()
          Deprecated. Returns
 
Methods inherited from class com.endeca.portal.metadata.MetadataProperty
getPropertyId, getSourceRecord, init, setPropertyId, setSourceRecord, toString
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeSetMapping

public AttributeSetMapping()
Deprecated. 
Constructor: initializes the object with an ID of -1


AttributeSetMapping

public AttributeSetMapping(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
Deprecated. 
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

AttributeSetMapping

public AttributeSetMapping(java.lang.String attributeName)
Deprecated. 
Convenience constructor that initializes the object for a specified attribute.

Parameters:
attributeName - the name of the attribute this mapping represents
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Deprecated. 
Returns the "value" of the attribute mapping, which is the name of the attribute that this mapping represents

Returns:
the name of the attribute

getType

public java.lang.String getType()
Deprecated. 
Returns

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)
Deprecated. 
Returns true if the provided display name property object's Metadata Object ID and mapping value (the attribute name) are the same. This equals method is important for List.contains() operations; changing the logic here could have consequences.

Overrides:
equals in class MetadataProperty

getPropertyComparator

public java.util.Comparator<MetadataProperty> getPropertyComparator()
Deprecated. 
Description copied from class: MetadataProperty
Specify the Comparator to use when determining if a MetadataProperty has been modified and should therefore be persisted to the database. Return null to use equals() instead of a custom comparator. This base class returns null; subclasses should override this method when necessary. Note that we abuse the Comparator interface - we don't truly care about ordering; we only care if the objects being compared are equivalent (i.e. the comparator returns 0). However, subclasses should fully comply with the Comparator interface for forward compatibility. *

Overrides:
getPropertyComparator in class MetadataProperty
Returns:
a custom Comparator or null to use equals()