fr.tireme.schemadoc.SDSchema.XSD
Class XSDElementDeclarationWrapp

java.lang.Object
  extended by fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
      extended by fr.tireme.schemadoc.SDSchema.XSD.SDSchemaContentImpl
          extended by fr.tireme.schemadoc.SDSchema.XSD.XSDElementDeclarationWrapp
All Implemented Interfaces:
SDConcreteComponent, SDElement, SDSchemaContent

public class XSDElementDeclarationWrapp
extends SDSchemaContentImpl
implements SDElement

Author:
Mike Niemaz (niemaz@xrce.xerox.com)

Field Summary
 
Fields inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
TYPE_ATTRIBUTE, TYPE_ATTRIBUTE_LABEL, TYPE_ATTRIBUTEGROUP, TYPE_ATTRIBUTEGROUP_LABEL, TYPE_COMPLEXTYPE, TYPE_COMPLEXTYPE_LABEL, TYPE_ELEMENT, TYPE_ELEMENT_LABEL, TYPE_GROUP, TYPE_GROUP_LABEL, TYPE_NOTATION, TYPE_NOTATION_LABEL, TYPE_SIMPLETYPE, TYPE_SIMPLETYPE_LABEL
 
Constructor Summary
XSDElementDeclarationWrapp(org.eclipse.xsd.XSDElementDeclaration xsdElementDeclaration)
          Constructor for the XSDElementDeclarationWrapp object
 
Method Summary
 SDElement getResolvedElementDeclaration(SDSchema schema)
          Return the resolved element declaration in case of reference
 SDAnnotation getSchemaAnnotation()
          Returns the annotation on this element
 int getType()
          Provides type to generinc class
 SDSchemaContent getType(SDSchema schema)
          Returns the type of this element
 java.lang.String getTypeName(SDSchema schema)
          Gets the name of the type of this element
 boolean hasTypeDefinition()
          Returns a boolean indicating wheter the type has a definition
 boolean isAnyType()
          Indicates if this element is of any type
 boolean isEmpty(SDSchema schema)
          Indicates if this element is empty or not
 boolean isRef()
          Indicates if this element is a reference to an other element
 boolean isTypeAnonymous()
          Returns a boolean indicating wheter the type is anonymous.
 
Methods inherited from class fr.tireme.schemadoc.SDSchema.XSD.SDSchemaContentImpl
getName, getQName, getSchema, getTargetNamespace, isGlobal
 
Methods inherited from class fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
getName, getQName, getSchema, getTargetNamespace, isGlobal
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 

Constructor Detail

XSDElementDeclarationWrapp

public XSDElementDeclarationWrapp(org.eclipse.xsd.XSDElementDeclaration xsdElementDeclaration)
Constructor for the XSDElementDeclarationWrapp object

Parameters:
xsdElementDeclaration - - xsdElementDeclaration the wrapped eclipse XSD element
Method Detail

isTypeAnonymous

public boolean isTypeAnonymous()
Returns a boolean indicating wheter the type is anonymous.

Specified by:
isTypeAnonymous in interface SDElement
Returns:
boolean - true if the type is anonymous.

hasTypeDefinition

public boolean hasTypeDefinition()
Returns a boolean indicating wheter the type has a definition

Specified by:
hasTypeDefinition in interface SDElement
Returns:
boolean - true if the type has definition

getType

public SDSchemaContent getType(SDSchema schema)
Returns the type of this element

Specified by:
getType in interface SDElement
Parameters:
schema - - root schema
Returns:
SDSchemaContent - the type of this element: or , null if it is neither one nor the other.

getResolvedElementDeclaration

public SDElement getResolvedElementDeclaration(SDSchema schema)
Return the resolved element declaration in case of reference

Specified by:
getResolvedElementDeclaration in interface SDElement
Parameters:
schema - - root schema
Returns:
the resolved element

getTypeName

public java.lang.String getTypeName(SDSchema schema)
Gets the name of the type of this element

Specified by:
getTypeName in interface SDElement
Parameters:
schema - - root schema
Returns:
String - The name of the type of this element.

getSchemaAnnotation

public SDAnnotation getSchemaAnnotation()
Returns the annotation on this element

Specified by:
getSchemaAnnotation in interface SDElement
Returns:
SDAnnotation - The annotation on this element, or null if none

isRef

public boolean isRef()
Indicates if this element is a reference to an other element

Specified by:
isRef in interface SDElement
Returns:
boolean - < code>true if this element is a reference

isAnyType

public boolean isAnyType()
Indicates if this element is of any type

Specified by:
isAnyType in interface SDElement
Returns:
boolean - true or false

isEmpty

public boolean isEmpty(SDSchema schema)
Indicates if this element is empty or not

Specified by:
isEmpty in interface SDElement
Parameters:
schema - - root schema
Returns:
boolean - true or false

getType

public int getType()
Provides type to generinc class

Specified by:
getType in interface SDSchemaContent
See Also:
SDSchemaContent.getType()