org.apache.commons.betwixt.schema
Class Attribute

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

public class Attribute
extends java.lang.Object

Models the attribute element in an XML schema.

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

Constructor Summary
Attribute()
           
Attribute(AttributeDescriptor attributeDescriptor)
           
Attribute(java.lang.String name, java.lang.String type)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Gets the attribute name
 java.lang.String getType()
          Gets the attribute type
 int hashCode()
           
 void setName(java.lang.String string)
          Sets the attribute name
 void setType(java.lang.String string)
          Sets the attribute type
 java.lang.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(java.lang.String name,
                 java.lang.String type)

Attribute

public Attribute(AttributeDescriptor attributeDescriptor)
Method Detail

getName

public java.lang.String getName()
Gets the attribute name

Returns:
name of this attribute, not null

setName

public void setName(java.lang.String string)
Sets the attribute name

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

getType

public java.lang.String getType()
Gets the attribute type

Returns:
the type of this attribute

setType

public void setType(java.lang.String string)
Sets the attribute type

Parameters:
string - the attribute type

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.