org.jdmp.core.attribute
Class Attribute

java.lang.Object
  extended by org.jdmp.core.attribute.Attribute
All Implemented Interfaces:
Serializable, Comparable<Attribute>, HasLabel

public class Attribute
extends Object
implements Serializable, Comparable<Attribute>, HasLabel

See Also:
Serialized Form

Constructor Summary
Attribute(boolean discrete, int valueCount)
           
Attribute(String label, boolean discrete, int valueCount)
           
 
Method Summary
 int compareTo(Attribute o)
           
 boolean equals(Object obj)
           
 String getLabel()
           
 int getValueCount()
           
 int hashCode()
           
 boolean isDiscrete()
           
 void setDiscrete(boolean discrete)
           
 void setLabel(String label)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(boolean discrete,
                 int valueCount)

Attribute

public Attribute(String label,
                 boolean discrete,
                 int valueCount)
Method Detail

isDiscrete

public boolean isDiscrete()

setDiscrete

public void setDiscrete(boolean discrete)

getLabel

public String getLabel()
Specified by:
getLabel in interface HasLabel

setLabel

public void setLabel(String label)
Specified by:
setLabel in interface HasLabel

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Attribute o)
Specified by:
compareTo in interface Comparable<Attribute>

getValueCount

public int getValueCount()


Copyright © 2009. All Rights Reserved.