|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.xml.schema.SchemaConstruct
org.idoox.xml.schema.Attribute
This class represents an XML Schema attribute.
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 |
protected Type attributeType
Constructor Detail |
public Attribute()
Attribute
instance.
public Attribute(QName name)
Attribute
instance.
name
- the attribute nameMethod Detail |
public void setName(QName name)
setName
in class SchemaConstruct
name
- the new namepublic Type getType()
public void setType(Type type)
type
- the type of the attributepublic boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toIndentedString(int level, java.util.Set alreadyProcessed)
toIndentedString
in class SchemaConstruct
level
- the current indentation levelalreadyProcessed
- set of already printed types (for cycle detection)
public java.lang.String toString()
public java.lang.Object clone()
SchemaConstruct
clone
in class SchemaConstruct
public void copyFrom(SchemaConstruct anotherConstruct)
SchemaConstruct
copyFrom
in class SchemaConstruct
anotherConstruct
- the another construct
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |