fr.tireme.schemadoc.SDSchema
Interface SDElement

All Superinterfaces:
SDConcreteComponent, SDSchemaContent
All Known Implementing Classes:
XSDElementDeclarationWrapp

public interface SDElement
extends SDSchemaContent

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
 
Method Summary
 SDElement getResolvedElementDeclaration(SDSchema schema)
          Return the resolved element declaration in case of reference
 SDAnnotation getSchemaAnnotation()
          Returns the annotation on this element
 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 interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
getName, getQName, getSchema, getTargetNamespace, getType, isGlobal
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 

Method Detail

isTypeAnonymous

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

Returns:
boolean - true if the type is anonymous.

hasTypeDefinition

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

Returns:
boolean - true if the type has definition

getType

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

Parameters:
schema - - root schema
Returns:
SDSchemaContent - the type of this element: or , null if it is neither one nor the other.

getResolvedElementDeclaration

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

Parameters:
schema - - root schema
Returns:
the resolved element

getTypeName

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

Parameters:
schema - - root schema
Returns:
String - The name of the type of this element.

getSchemaAnnotation

SDAnnotation getSchemaAnnotation()
Returns the annotation on this element

Returns:
SDAnnotation - The annotation on this element, or null if none

isRef

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

Returns:
boolean - < code>true if this element is a reference

isAnyType

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

Returns:
boolean - true or false

isEmpty

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

Parameters:
schema - - root schema
Returns:
boolean - true or false