public class

Attribute

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.schema.Attribute

Class Overview

Models the attribute element in an XML schema.

Summary

Public Constructors
Attribute()
Attribute(String name, String type)
Attribute(AttributeDescriptor attributeDescriptor)
Public Methods
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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Attribute ()

public Attribute (String name, String type)

public Attribute (AttributeDescriptor attributeDescriptor)

Public Methods

public boolean equals (Object obj)

public String getName ()

Gets the attribute name

Returns
  • name of this attribute, not null

public String getType ()

Gets the attribute type

Returns
  • the type of this attribute

public int hashCode ()

public void setName (String string)

Sets the attribute name

Parameters
string the name for this attribute, not null

public void setType (String string)

Sets the attribute type

Parameters
string the attribute type

public String toString ()