FileDocCategorySizeDatePackage
MetaAttribute.javaAPI DocHibernate 3.2.5953Mon Oct 30 08:46:48 GMT 2006org.hibernate.mapping

MetaAttribute

public class MetaAttribute extends Object implements Serializable
A meta attribute is a named value or values.
author
Gavin King

Fields Summary
private String
name
private List
values
Constructors Summary
public MetaAttribute(String name)


	   
		this.name = name;
	
Methods Summary
public voidaddValue(java.lang.String value)

		values.add(value);
	
public java.lang.StringgetName()

		return name;
	
public java.lang.StringgetValue()

		if ( values.size()!=1 ) {
			throw new IllegalStateException("no unique value");
		}
		return (String) values.get(0);
	
public java.util.ListgetValues()

		return Collections.unmodifiableList(values);
	
public booleanisMultiValued()

		return values.size()>1;
	
public java.lang.StringtoString()

		return "[" + name + "=" + values + "]";