org.idoox.xml.schema
Class Attribute

java.lang.Object
  extended byorg.idoox.xml.schema.SchemaConstruct
      extended byorg.idoox.xml.schema.Attribute
All Implemented Interfaces:
java.io.Serializable

public class Attribute
extends SchemaConstruct

This class represents an XML Schema attribute.

Since:
4.0
See Also:
Serialized Form
Component:
Core

Nested Class Summary
 
Nested classes inherited from class org.idoox.xml.schema.SchemaConstruct
SchemaConstruct.ConstructType
 
Field Summary
protected  Type attributeType
          the type of the attribute
 
Fields inherited from class org.idoox.xml.schema.SchemaConstruct
appInfo, name, reference
 
Constructor Summary
Attribute()
          Creates a new Attribute instance.
Attribute(QName name)
          Creates a new Attribute instance.
 
Method Summary
 java.lang.Object clone()
          Shallow-clones the schema construct.
 void copyFrom(SchemaConstruct anotherConstruct)
          Copies all the information of another construct into this construct.
 boolean equals(java.lang.Object other)
           
 Type getType()
          Returns the type of the attribute.
 int hashCode()
           
 void setName(QName name)
          Sets the name of the type.
 void setType(Type type)
          Sets the type of the attribute.
 java.lang.String toIndentedString(int level, java.util.Set alreadyProcessed)
          Returns pretty printed form of the type.
 java.lang.String toString()
           
 
Methods inherited from class org.idoox.xml.schema.SchemaConstruct
containsInFirst, getAppInfo, getAppInfos, getConstructType, getFacets, getJavaName, getName, getParent, getPrefixNamespaceMapping, getReferencedConstruct, parseQName, setAppInfo, setAppInfos, setConstructType, setFacets, setJavaName, setParent, setPrefixNamespaceMapping, setReferencedConstruct, toIndentedString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

attributeType

protected Type attributeType
the type of the attribute

Constructor Detail

Attribute

public Attribute()
Creates a new Attribute instance.


Attribute

public Attribute(QName name)
Creates a new Attribute instance.

Parameters:
name - the attribute name
Method Detail

setName

public void setName(QName name)
Sets the name of the type.

Overrides:
setName in class SchemaConstruct
Parameters:
name - the new name

getType

public Type getType()
Returns the type of the attribute.

Returns:
the type of the attribute

setType

public void setType(Type type)
Sets the type of the attribute.

Parameters:
type - the type of the attribute

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()

toIndentedString

public java.lang.String toIndentedString(int level,
                                         java.util.Set alreadyProcessed)
Returns pretty printed form of the type.

Overrides:
toIndentedString in class SchemaConstruct
Parameters:
level - the current indentation level
alreadyProcessed - set of already printed types (for cycle detection)
Returns:
the pp. text representation

toString

public java.lang.String toString()

clone

public java.lang.Object clone()
Description copied from class: SchemaConstruct
Shallow-clones the schema construct.

Overrides:
clone in class SchemaConstruct
Returns:
the shallow-clone of the schema construct

copyFrom

public void copyFrom(SchemaConstruct anotherConstruct)
Description copied from class: SchemaConstruct
Copies all the information of another construct into this construct.

Overrides:
copyFrom in class SchemaConstruct
Parameters:
anotherConstruct - the another construct