pl.edu.agh.cast.model.attributes
Class AttributeMergePolicy.MergePolicyLogicalOr
java.lang.Object
pl.edu.agh.cast.model.attributes.AttributeMergePolicy
pl.edu.agh.cast.model.attributes.AttributeMergePolicy.MergePolicyLogicalOr
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- AttributeMergePolicy
public static final class AttributeMergePolicy.MergePolicyLogicalOr
- extends AttributeMergePolicy
A merge policy that always returns the logical alternative (OR) of given values. It is valid only for two values
of type Boolean
- Author:
- AGH CAST Team
- See Also:
- Serialized Form
mergeValues
public Object mergeValues(Attribute attribute,
Object firstValue,
Object secondValue)
- 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 mergefirstValue
- first valuesecondValue
- second value
- Returns:
- an
AttributeValue
that is the result of merging given values according to the policy - See Also:
#mergeValues(pl.edu.agh.cast.model.attributes.VisualAttribute, java.lang.Object, java.lang.Object)
getId
public String getId()
- Returns the unique id of this policy.
- Specified by:
getId
in class AttributeMergePolicy
- Returns:
- policy id
- See Also:
AttributeMergePolicy.getId()
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.