org.apache.commons.betwixt.schema
Class GlobalComplexType

java.lang.Object
  extended byorg.apache.commons.betwixt.schema.ComplexType
      extended byorg.apache.commons.betwixt.schema.GlobalComplexType

public class GlobalComplexType
extends ComplexType

Models a complexType from an XML schema. A complex type may contain element content and may have attributes.

Version:
$Revision: 190515 $
Author:
Jakarta Commons Team

Field Summary
private  java.lang.String name
           
 
Fields inherited from class org.apache.commons.betwixt.schema.ComplexType
attributes, elements
 
Constructor Summary
GlobalComplexType()
           
GlobalComplexType(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)
          Constructs a new ComplexType from the descriptor given.
 
Method Summary
private  boolean equalContents(java.util.Collection one, java.util.Collection two)
           
 boolean equals(java.lang.Object obj)
           
protected  void fill(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)
          Fills the complex type description.
 java.lang.String getName()
          Gets the name of this type.
 int hashCode()
           
protected  void init(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)
           
private  boolean isEqual(java.lang.String one, java.lang.String two)
          Null safe equals method
 boolean matches(ElementDescriptor elementDescriptor)
          Does the given element descriptor match this complex type?
private  java.lang.String nameFromDescriptor(ElementDescriptor elementDescriptor)
           
 void setName(java.lang.String string)
          Sets the name of this type.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.commons.betwixt.schema.ComplexType
addAttribute, addElement, addElement, fillDescriptor, getAttributes, getElements
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Constructor Detail

GlobalComplexType

public GlobalComplexType()

GlobalComplexType

public GlobalComplexType(TranscriptionConfiguration configuration,
                         ElementDescriptor elementDescriptor,
                         Schema schema)
                  throws java.beans.IntrospectionException
Constructs a new ComplexType from the descriptor given.

Parameters:
elementDescriptor -
Method Detail

init

protected void init(TranscriptionConfiguration configuration,
                    ElementDescriptor elementDescriptor,
                    Schema schema)
             throws java.beans.IntrospectionException
Overrides:
init in class ComplexType
Throws:
java.beans.IntrospectionException

fill

protected void fill(TranscriptionConfiguration configuration,
                    ElementDescriptor elementDescriptor,
                    Schema schema)
             throws java.beans.IntrospectionException
Fills the complex type description.

Parameters:
configuration -
elementDescriptor -
schema -
Throws:
java.beans.IntrospectionException
Since:
0.7

nameFromDescriptor

private java.lang.String nameFromDescriptor(ElementDescriptor elementDescriptor)

matches

public boolean matches(ElementDescriptor elementDescriptor)
Does the given element descriptor match this complex type?

Parameters:
elementDescriptor -
Returns:
true if the descriptor matches
Since:
0.7

getName

public java.lang.String getName()
Gets the name of this type.

Returns:
the name of this type

setName

public void setName(java.lang.String string)
Sets the name of this type.

Parameters:
string -

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

equalContents

private boolean equalContents(java.util.Collection one,
                              java.util.Collection two)

isEqual

private boolean isEqual(java.lang.String one,
                        java.lang.String two)
Null safe equals method

Parameters:
one -
two -
Returns:

toString

public java.lang.String toString()