public class Attribute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
this attribute's name
|
Constructor and Description |
---|
Attribute()
Default constructor.
|
Attribute(java.lang.String name)
Explicit constructor that sets the name of this attribute.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name of this attribute.
|
static void |
main(java.lang.String[] args) |
void |
setName(java.lang.String name)
Sets the name of this attribute to the specified name.
|
int |
size()
Gets the size of this attribute's domain.
|
java.lang.String |
toString()
Returns a string representation of this attribute.
|
public Attribute()
public Attribute(java.lang.String name)
name
- the name of this attributepublic java.lang.String getName()
public int size()
public void setName(java.lang.String name)
name
- the name of this attributepublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)