org.apache.commons.betwixt.schema
Class Attribute

java.lang.Object
  extended by org.apache.commons.betwixt.schema.Attribute

public class Attribute
extends Object

Models the attribute element in an XML schema.

Version:
$Revision: 561314 $
Author:
Apache Commons Team

Constructor Summary
Attribute()
           
Attribute(AttributeDescriptor attributeDescriptor)
           
Attribute(String name, String type)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Gets the attribute name
 String getType()
          Gets the attribute type
 int hashCode()
           
 void setName(String string)
          Sets the attribute name
 void setType(String string)
          Sets the attribute type
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()

Attribute

public Attribute(String name,
                 String type)

Attribute

public Attribute(AttributeDescriptor attributeDescriptor)
Method Detail

getName

public String getName()
Gets the attribute name

Returns:
name of this attribute, not null

setName

public void setName(String string)
Sets the attribute name

Parameters:
string - the name for this attribute, not null

getType

public String getType()
Gets the attribute type

Returns:
the type of this attribute

setType

public void setType(String string)
Sets the attribute type

Parameters:
string - the attribute type

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.