com.elasticpath.domain.attribute.impl
Class AttributeGroupImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by com.elasticpath.domain.attribute.impl.AttributeGroupImpl
All Implemented Interfaces:
AttributeGroup, EpDomain, Persistence, ValueObject, java.io.Serializable

public class AttributeGroupImpl
extends AbstractValueObjectImpl
implements AttributeGroup

Represents a default implementation of AttributeGroup.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
AttributeGroupImpl()
           
 
Method Summary
 void addAttributeGroupAttribute(AttributeGroupAttribute attributeGroupAttribute)
          Add an attribute to belong to this product type.
 java.util.Set getAttributeGroupAttributes()
          Get the set of attributes associated with this product type.
 java.util.Set getRemovedAttributes(java.util.Set before)
          Compares attribute sets on this and attribute group attribute set before an update and returns a set of attributes that have been deleted.
 void setAttributeGroupAttributes(java.util.Set attributes)
          Set the set of attributes associated with this product type.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

AttributeGroupImpl

public AttributeGroupImpl()
Method Detail

addAttributeGroupAttribute

public void addAttributeGroupAttribute(AttributeGroupAttribute attributeGroupAttribute)
Add an attribute to belong to this product type.

Specified by:
addAttributeGroupAttribute in interface AttributeGroup
Parameters:
attributeGroupAttribute - the product type attribute to add.

getAttributeGroupAttributes

public java.util.Set getAttributeGroupAttributes()
Get the set of attributes associated with this product type.

Specified by:
getAttributeGroupAttributes in interface AttributeGroup
Returns:
the set of attributes

getRemovedAttributes

public java.util.Set getRemovedAttributes(java.util.Set before)
Compares attribute sets on this and attribute group attribute set before an update and returns a set of attributes that have been deleted.

Specified by:
getRemovedAttributes in interface AttributeGroup
Parameters:
before - attributeGroupAttribute set before an update.
Returns:
set of attributes that have been deleted.

setAttributeGroupAttributes

public void setAttributeGroupAttributes(java.util.Set attributes)
Set the set of attributes associated with this product type.

Specified by:
setAttributeGroupAttributes in interface AttributeGroup
Parameters:
attributes - the attributes to set