pl.edu.agh.cast.model.attributes
Class AttributeMergePolicy.MergePolicyLogicalAnd

java.lang.Object
  extended by pl.edu.agh.cast.model.attributes.AttributeMergePolicy
      extended by pl.edu.agh.cast.model.attributes.AttributeMergePolicy.MergePolicyLogicalAnd
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
AttributeMergePolicy

public static final class AttributeMergePolicy.MergePolicyLogicalAnd
extends AttributeMergePolicy

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class pl.edu.agh.cast.model.attributes.AttributeMergePolicy
AttributeMergePolicy.MergePolicyAlwaysFirst, AttributeMergePolicy.MergePolicyAlwaysSecond, AttributeMergePolicy.MergePolicyLogicalAnd, AttributeMergePolicy.MergePolicyLogicalOr
 
Field Summary
 
Fields inherited from class pl.edu.agh.cast.model.attributes.AttributeMergePolicy
MERGE_POLICY_ALWAYS_FIRST, MERGE_POLICY_ALWAYS_SECOND, MERGE_POLICY_LOGICAL_AND, MERGE_POLICY_LOGICAL_OR
 
Method Summary
 java.lang.String getId()
           
 java.lang.Object mergeValues(Attribute attribute, java.lang.Object firstValue, java.lang.Object secondValue)
          Merges two Attribute values into one.
 
Methods inherited from class pl.edu.agh.cast.model.attributes.AttributeMergePolicy
checkIfBoolean, equals, resolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

mergeValues

public java.lang.Object mergeValues(Attribute attribute,
                                    java.lang.Object firstValue,
                                    java.lang.Object secondValue)
Description copied from class: AttributeMergePolicy
Merges two Attribute values into one. It is possible that the returned value will be one of the parameters, or a completely new object.

Specified by:
mergeValues in class AttributeMergePolicy
Parameters:
attribute - Attribute to merge
Returns:
an AttributeValue that is the result of merging given values according to the policy

getId

public java.lang.String getId()
Specified by:
getId in class AttributeMergePolicy


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.