Public Member Functions | Protected Member Functions

org.exolab.castor.xml.schema.ElementDecl Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.ElementDecl:
org.exolab.castor.xml.schema.Particle org.exolab.castor.xml.schema.Referable org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure

List of all members.

Public Member Functions

 ElementDecl (Schema schema)
 ElementDecl (Schema schema, String name)
void addIdentityConstraint (IdentityConstraint constraint)
BlockList getBlock ()
String getDefaultValue ()
FinalList getFinal ()
String getFixedValue ()
Form getForm ()
String getId ()
Enumeration getIdentityConstraints ()
String getName ()
String getName (boolean ignoreRef)
Structure getParent ()
XMLType getType ()
ElementDecl getReference ()
String getReferenceName ()
String getReferenceId ()
Schema getSchema ()
String getSubstitutionGroup ()
Enumeration getSubstitutionGroupMembers ()
boolean isAbstract ()
boolean isNillable ()
boolean isReference ()
void setAbstract (boolean isAbstract)
boolean hasChildren ()
boolean removeIdentityConstraint (IdentityConstraint constraint)
void setBlock (BlockList block)
void setBlock (String block)
void setDefaultValue (String value)
void setFinal (FinalList finalList)
void setFinal (String finalValue)
void setFixedValue (String value)
void setForm (Form form)
void setId (String id)
void setName (String name)
void setNillable (boolean nillable)
void setReference (ElementDecl reference)
void setReference (String reference)
void setSubstitutionGroup (String substitutionGroup)
void setType (XMLType type)
void setTypeReference (String name)
short getStructureType ()
void validate () throws ValidationException

Protected Member Functions

void setParent (Structure parent)

Detailed Description

An XML Schema ElementDecl

Author:
Keith Visco
Version:
Revision:
1.5
Date:
2005/01/10 20:10:36

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.ElementDecl.ElementDecl ( Schema  schema  ) 

Creates a new default element definition

Parameters:
schema,the XML Schema to which this element declartion belongs
This element definition will not be valid until a name has been set
org.exolab.castor.xml.schema.ElementDecl.ElementDecl ( Schema  schema,
String  name 
)

Creates a new default element definition

Parameters:
schema,the XML Schema to which this Element Declartion belongs
name the name of the Element being declared

References org.exolab.castor.xml.schema.ElementDecl.setName().


Member Function Documentation

void org.exolab.castor.xml.schema.ElementDecl.addIdentityConstraint ( IdentityConstraint  constraint  ) 

Adds the given IdentityConstraint to this element definition.

Parameters:
constraint the IdentityConstraint to add.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.endElement().

BlockList org.exolab.castor.xml.schema.ElementDecl.getBlock (  ) 

Returns the value of the 'block' attribute for this element

Returns:
the value of the block attribute.
String org.exolab.castor.xml.schema.ElementDecl.getDefaultValue (  ) 
FinalList org.exolab.castor.xml.schema.ElementDecl.getFinal (  ) 

Returns the value of the 'final' attribute for this element definition.

Returns:
the FinalList for this element definition.
String org.exolab.castor.xml.schema.ElementDecl.getFixedValue (  ) 
Form org.exolab.castor.xml.schema.ElementDecl.getForm (  ) 

Returns the Form for this element definition. The Form object species whether or not names are qualified or unqualified in the scope of this element definition. If null, the Form should be obtained from the parent Schema.

Returns:
the Form for this element definition, or null if not set.

Referenced by org.exolab.castor.builder.binding.XMLBindingComponent.getTargetNamespace().

String org.exolab.castor.xml.schema.ElementDecl.getId (  ) 

Returns the 'id' for this element definition.

Returns:
the 'id' for this element definition.
Enumeration org.exolab.castor.xml.schema.ElementDecl.getIdentityConstraints (  ) 

Returns an Enumeration of IdentityConstraint objects contained within this element definition.

Returns:
an Enumeration of IdentityConstraint objects contained within this element definition.
String org.exolab.castor.xml.schema.ElementDecl.getName (  ) 
String org.exolab.castor.xml.schema.ElementDecl.getName ( boolean  ignoreRef  ) 

Returns the name of this Element declaration. The name returned, if not null, will be an NCName.

Parameters:
ingoreRef if false the name of the referenced element (if specified) is returned, otherwise the localname (may be null).
Returns:
the name of this element declaration

References org.exolab.castor.xml.schema.ElementDecl.isReference().

Structure org.exolab.castor.xml.schema.ElementDecl.getParent (  ) 
String org.exolab.castor.xml.schema.ElementDecl.getReferenceId (  ) 

Returns the Id used to Refer to this Object

Returns:
the Id used to Refer to this Object
See also:
Referable

Implements org.exolab.castor.xml.schema.Referable.

String org.exolab.castor.xml.schema.ElementDecl.getReferenceName (  ) 

Returns the actual reference name of this AttributeDecl, or null if this AttributeDecl is not a reference. The name returned, if not null, will be a QName, possibly containing the namespace prefix.

Returns:
the reference name

Referenced by org.exolab.castor.builder.binding.XMLBindingComponent.getJavaMemberName().

Schema org.exolab.castor.xml.schema.ElementDecl.getSchema (  ) 

Returns the XML Schema to which this element declaration belongs.

Returns:
the XML Schema to which this element declaration belongs.

Referenced by org.exolab.castor.builder.binding.XMLBindingComponent.getSchema(), org.exolab.castor.builder.binding.XMLBindingComponent.getTargetNamespace(), and org.exolab.castor.xml.schema.ElementDecl.setReference().

short org.exolab.castor.xml.schema.ElementDecl.getStructureType (  ) 

Returns the type of this Schema Structure

Returns:
the type of this Schema Structure

Referenced by org.exolab.castor.xml.schema.ElementDecl.validate().

String org.exolab.castor.xml.schema.ElementDecl.getSubstitutionGroup (  ) 

Returns the substitutionGroup for this element declaration, or null if it's absent.

Returns:
the substitutionGroup membership for this element declaration, or null if absent.

Referenced by org.exolab.castor.xml.schema.ElementDecl.getSubstitutionGroupMembers().

Enumeration org.exolab.castor.xml.schema.ElementDecl.getSubstitutionGroupMembers (  ) 

Returns an enumeration of the elements that can be substitute to this element declaration.

Returns:
an enumeration of the elements that can be substitute to this element declaration.

References org.exolab.castor.xml.schema.Schema.getElementDecls(), and org.exolab.castor.xml.schema.ElementDecl.getSubstitutionGroup().

boolean org.exolab.castor.xml.schema.ElementDecl.hasChildren (  ) 

Returns true if this element has children (i.e if it holds attributes or elements).

References org.exolab.castor.xml.schema.ElementDecl.getType().

boolean org.exolab.castor.xml.schema.ElementDecl.isAbstract (  ) 

Returns true if this element definition is abstract

Returns:
true if this element definition is abstract
boolean org.exolab.castor.xml.schema.ElementDecl.isNillable (  ) 

Returns whether or not instances of this element definition may appear with no content.

Returns:
true if instances of this element definition may appear with no content, otherwise false.
boolean org.exolab.castor.xml.schema.ElementDecl.removeIdentityConstraint ( IdentityConstraint  constraint  ) 

Removes the given IdentityConstraint from this element definition.

Parameters:
constraint the IdentityConstraint to remove.
Returns:
true if the IdentityConstraint was contained within this element defintion.
void org.exolab.castor.xml.schema.ElementDecl.setAbstract ( boolean  isAbstract  ) 

Sets whether or not this element definition is abstract

Parameters:
isAbstract,a boolean when true indicates that this element definition should be abstract

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setBlock ( BlockList  block  ) 

Sets the value of the 'block' attribute for this element

Parameters:
block the value of the block attribute for this element definition.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setBlock ( String  block  ) 

Sets the value of the 'block' attribute for this element

Parameters:
block the value of the block attribute for this element definition.
void org.exolab.castor.xml.schema.ElementDecl.setDefaultValue ( String  value  ) 

Sets the default value for this element definition.

Parameters:
value the default value for this element definition.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setFinal ( FinalList  finalList  ) 

Sets the value of the 'final' attribute for this element definition.

Parameters:
finalValue the value of the final attribute for this element definition.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setFinal ( String  finalValue  ) 

Sets the value of the 'final' attribute for this element definition.

Parameters:
finalValue the value of the final attribute for this element definition.
void org.exolab.castor.xml.schema.ElementDecl.setFixedValue ( String  value  ) 

Sets the fixed value for this element definition.

Parameters:
value the fixed value for this element definition.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setForm ( Form  form  ) 

Sets the Form for this element definition. The Form object species whether or not names are qualified or unqualified in the scope of this element definition. If null, the Form is to be obtained from the parent Schema.

Parameters:
form the Form type for this element definition.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setId ( String  id  ) 

Sets the Id for this element definition.

Parameters:
id the Id for this element definition.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setName ( String  name  ) 

Sets the name of the element that this Element definition defines.

Parameters:
name the name of the defined element

Referenced by org.exolab.castor.xml.schema.ElementDecl.ElementDecl(), and org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setNillable ( boolean  nillable  ) 

Sets whether or not instances of this element definition may contain empty content

Parameters:
nillable the flag when true indicates that instances of this element definition may appear with empty content

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setParent ( Structure  parent  )  [protected]

Sets the parent for this ElementDecl.

Parameters:
parent the parent Structure for this ElementDecl

References org.exolab.castor.xml.schema.Structure.getStructureType().

void org.exolab.castor.xml.schema.ElementDecl.setReference ( String  reference  ) 

Sets the reference for this element definition

Parameters:
reference the name of the element definition that this definition references
void org.exolab.castor.xml.schema.ElementDecl.setSubstitutionGroup ( String  substitutionGroup  ) 

Sets the substitutionGroup for this element definition.

Parameters:
substitutionGroup the substitutionGroup for this element definition.

Referenced by org.exolab.castor.xml.schema.reader.ElementUnmarshaller.ElementUnmarshaller().

void org.exolab.castor.xml.schema.ElementDecl.setType ( XMLType  type  ) 

Sets the XMLType for this Element declaration.

Parameters:
type the XMLType for this element declaration.
Note: This method is mutually exclusive with setTypeReference, if a reference has previously been set it will be ignored.

References org.exolab.castor.xml.schema.XMLType.setParent().

Referenced by org.exolab.castor.xml.dtd.Converter.convertDTDElementToSchemaElement(), org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.endElement(), org.exolab.castor.xml.schema.reader.ElementUnmarshaller.endElement(), and org.exolab.castor.xml.schema.ElementDecl.setTypeReference().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties