|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.schema.Attribute
public class Attribute
Models the attribute element in an XML schema.
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 |
---|
public Attribute()
public Attribute(java.lang.String name, java.lang.String type)
public Attribute(AttributeDescriptor attributeDescriptor)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String string)
string
- the name for this attribute, not nullpublic java.lang.String getType()
public void setType(java.lang.String string)
string
- the attribute typepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |