org.apache.commons.betwixt.schema
Class GlobalComplexType

java.lang.Object
  extended by org.apache.commons.betwixt.schema.ComplexType
      extended by org.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: 561314 $
Author:
Apache Commons Team

Field Summary
 
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
 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)
           
 boolean matches(ElementDescriptor elementDescriptor)
          Does the given element descriptor match this complex type?
 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
 

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 -
Throws:
java.beans.IntrospectionException
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

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)
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.