package com.exedio.cope.lib;

public final class AttributeValue
{
	public final ObjectAttribute attribute;
	public final Object value;
	
	public AttributeValue(final StringAttribute attribute, final String value)
	{
		this.attribute = attribute;
		this.value = value;
	}
	
	public AttributeValue(final BooleanAttribute attribute, final Boolean value)
	{
		this.attribute = attribute;
		this.value = value;
	}
	
	public AttributeValue(final IntegerAttribute attribute, final Integer value)
	{
		this.attribute = attribute;
		this.value = value;
	}
	
	public AttributeValue(final LongAttribute attribute, final Long value)
	{
		this.attribute = attribute;
		this.value = value;
	}
	
	public AttributeValue(final DoubleAttribute attribute, final Double value)
	{
		this.attribute = attribute;
		this.value = value;
	}
	
	public AttributeValue(final ItemAttribute attribute, final Item value)
	{
		this.attribute = attribute;
		this.value = value;
	}
	
	public AttributeValue(final EnumerationAttribute attribute, final EnumerationValue value)
	{
		this.attribute = attribute;
		this.value = value;
	}
	
}
	


@@ -437,378 +437,984 @@
 nal 
-IntegerAttribute attribute, final Integer value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = value;%0A%09%7D%0A%09%0A%09public AttributeValue(final LongAttribute attribute, final Long value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = value;%0A%09%7D%0A%09%0A%09public AttributeValue(final DoubleAttribute attribute, final Double value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = value
+BooleanAttribute attribute, final boolean value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = value ? Boolean.TRUE : Boolean.FALSE;%0A%09%7D%0A%09%0A%09public AttributeValue(final IntegerAttribute attribute, final Integer value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = value;%0A%09%7D%0A%09%0A%09public AttributeValue(final IntegerAttribute attribute, final int value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = new Integer(value);%0A%09%7D%0A%09%0A%09public AttributeValue(final LongAttribute attribute, final Long value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = value;%0A%09%7D%0A%09%0A%09public AttributeValue(final LongAttribute attribute, final long value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = new Long(value);%0A%09%7D%0A%09%0A%09public AttributeValue(final DoubleAttribute attribute, final Double value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = value;%0A%09%7D%0A%09%0A%09public AttributeValue(final DoubleAttribute attribute, final double value)%0A%09%7B%0A%09%09this.attribute = attribute;%0A%09%09this.value = new Double(value)
 ;%0A%09%7D

add constructors for native types