org.apache.commons.betwixt.schema
Class GlobalElement
java.lang.Object
|
+--org.apache.commons.betwixt.schema.GlobalElement
- All Implemented Interfaces:
- Element
- Direct Known Subclasses:
- ElementReference
- public class GlobalElement
- extends java.lang.Object
- implements Element
Models a global definition of an element
.
- Version:
- $Revision: 190509 $
- Author:
- Jakarta Commons Team
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
STRING_SIMPLE_TYPE
public static final java.lang.String STRING_SIMPLE_TYPE
GlobalElement
public GlobalElement()
GlobalElement
public GlobalElement(java.lang.String name,
java.lang.String type)
GlobalElement
public GlobalElement(java.lang.String name,
GlobalComplexType complexType)
getName
public java.lang.String getName()
- Gets the element name
- Specified by:
getName
in interface Element
- Returns:
- element name, not null
setName
public void setName(java.lang.String string)
- Sets the element name
- Parameters:
string
- not null
getType
public java.lang.String getType()
- Gets the element type
- Returns:
- the type of the element
setType
public void setType(java.lang.String string)
- Sets the element type
- Parameters:
string
-
getComplexType
public GlobalComplexType getComplexType()
- Gets the anonymous type definition for this element, if one exists.
- Returns:
- ComplexType, null if there is no associated anonymous type definition
setComplexType
public void setComplexType(GlobalComplexType type)
- Sets the anonymous type definition for this element
- Parameters:
type
- ComplexType to be set as the anonymous type definition,
null if the type is to be referenced
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.