org.apache.commons.betwixt.schema
Class GlobalElement

java.lang.Object
  extended by 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: 561314 $
Author:
Apache Commons Team

Field Summary
static java.lang.String STRING_SIMPLE_TYPE
           
 
Constructor Summary
GlobalElement()
           
GlobalElement(java.lang.String name, GlobalComplexType complexType)
           
GlobalElement(java.lang.String name, java.lang.String type)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 GlobalComplexType getComplexType()
          Gets the anonymous type definition for this element, if one exists.
 java.lang.String getName()
          Gets the element name
 java.lang.String getType()
          Gets the element type
 int hashCode()
           
 void setComplexType(GlobalComplexType type)
          Sets the anonymous type definition for this element
 void setName(java.lang.String string)
          Sets the element name
 void setType(java.lang.String string)
          Sets the element type
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING_SIMPLE_TYPE

public static final java.lang.String STRING_SIMPLE_TYPE
See Also:
Constant Field Values
Constructor Detail

GlobalElement

public GlobalElement()

GlobalElement

public GlobalElement(java.lang.String name,
                     java.lang.String type)

GlobalElement

public GlobalElement(java.lang.String name,
                     GlobalComplexType complexType)
Method Detail

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-2008 The Apache Software Foundation. All Rights Reserved.