public class

GlobalElement

extends Object
implements Element
java.lang.Object
   ↳ org.apache.commons.betwixt.schema.GlobalElement
Known Direct Subclasses

Class Overview

Models a global definition of an element.

Summary

Constants
String STRING_SIMPLE_TYPE
Public Constructors
GlobalElement()
GlobalElement(String name, String type)
GlobalElement(String name, GlobalComplexType complexType)
Public Methods
boolean equals(Object obj)
GlobalComplexType getComplexType()
Gets the anonymous type definition for this element, if one exists.
String getName()
Gets the element name
String getType()
Gets the element type
int hashCode()
void setComplexType(GlobalComplexType type)
Sets the anonymous type definition for this element
void setName(String string)
Sets the element name
void setType(String string)
Sets the element type
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.commons.betwixt.schema.Element

Constants

public static final String STRING_SIMPLE_TYPE

Constant Value: "xsd:string"

Public Constructors

public GlobalElement ()

public GlobalElement (String name, String type)

public GlobalElement (String name, GlobalComplexType complexType)

Public Methods

public boolean equals (Object obj)

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

public String getName ()

Gets the element name

Returns
  • element name, not null

public String getType ()

Gets the element type

Returns
  • the type of the element

public int hashCode ()

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

public void setName (String string)

Sets the element name

Parameters
string not null

public void setType (String string)

Sets the element type

public String toString ()