org.sakaiproject.metaobj.utils.xml.impl
Class ComplexSchemaNodeImpl

java.lang.Object
  extended byorg.sakaiproject.metaobj.utils.xml.impl.SchemaNodeImpl
      extended byorg.sakaiproject.metaobj.utils.xml.impl.ComplexSchemaNodeImpl
All Implemented Interfaces:
SchemaNode, Serializable

public class ComplexSchemaNodeImpl
extends SchemaNodeImpl

Created by IntelliJ IDEA. User: John Ellis Date: Apr 15, 2004 Time: 3:47:11 PM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.sakaiproject.metaobj.utils.xml.impl.SchemaNodeImpl
SchemaNodeImpl.GlobalMaps
 
Field Summary
 
Fields inherited from class org.sakaiproject.metaobj.utils.xml.impl.SchemaNodeImpl
xsdNamespace
 
Constructor Summary
ComplexSchemaNodeImpl(org.jdom.Element schemaElement, SchemaNodeImpl.GlobalMaps globalMaps)
           
 
Method Summary
 Object getActualNormalizedValue(String value)
           
 SchemaNode getChild(String elementName)
          Gets the schema object for the named child node.
 List getChildren()
           
 List getEnumeration()
           
 Class getObjectType()
           
 String getSchemaNormalizedValue(Object value)
           
 boolean hasEnumerations()
           
protected  void initSchemaElement()
           
 boolean isDataNode()
           
protected  void processAttributes(List childList)
           
protected  void processSequence(org.jdom.Element sequenceElement)
           
protected  void setupAttributeGroups()
           
 ValidatedNode validateAndNormalize(org.jdom.Element node)
          Validates the passed in node and all children.
 
Methods inherited from class org.sakaiproject.metaobj.utils.xml.impl.SchemaNodeImpl
createNode, createNode, createTypeNode, getAppAnnotation, getAppAnnotations, getDocumentAnnotation, getDocumentAnnotations, getGlobalMaps, getMaxOccurs, getMinOccurs, getName, getRootChildren, getSchemaElement, getTargetNamespace, getType, isAttribute, processAnnotationList, processAnnotations, processAttributeGroup, processIncludes, setTargetNamespace, setupNamespaces, validateAndNormalize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexSchemaNodeImpl

public ComplexSchemaNodeImpl(org.jdom.Element schemaElement,
                             SchemaNodeImpl.GlobalMaps globalMaps)
                      throws SchemaInvalidException
Method Detail

initSchemaElement

protected void initSchemaElement()
Overrides:
initSchemaElement in class SchemaNodeImpl

processAttributes

protected void processAttributes(List childList)

processSequence

protected void processSequence(org.jdom.Element sequenceElement)

validateAndNormalize

public ValidatedNode validateAndNormalize(org.jdom.Element node)
Validates the passed in node and all children. Will also normalize any values.

Specified by:
validateAndNormalize in interface SchemaNode
Overrides:
validateAndNormalize in class SchemaNodeImpl
Parameters:
node - a jdom element to validate
Returns:
the validated Element wrapped in a ValidatedNode class

setupAttributeGroups

protected void setupAttributeGroups()

getChild

public SchemaNode getChild(String elementName)
Gets the schema object for the named child node.

Specified by:
getChild in interface SchemaNode
Overrides:
getChild in class SchemaNodeImpl
Parameters:
elementName - the name of the schema node to retrive.
Returns:

getSchemaNormalizedValue

public String getSchemaNormalizedValue(Object value)
                                throws NormalizationException
Specified by:
getSchemaNormalizedValue in interface SchemaNode
Overrides:
getSchemaNormalizedValue in class SchemaNodeImpl
Throws:
NormalizationException

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface SchemaNode
Overrides:
getObjectType in class SchemaNodeImpl

getChildren

public List getChildren()
Specified by:
getChildren in interface SchemaNode
Overrides:
getChildren in class SchemaNodeImpl

isDataNode

public boolean isDataNode()
Specified by:
isDataNode in interface SchemaNode
Overrides:
isDataNode in class SchemaNodeImpl

hasEnumerations

public boolean hasEnumerations()
Specified by:
hasEnumerations in interface SchemaNode
Overrides:
hasEnumerations in class SchemaNodeImpl

getEnumeration

public List getEnumeration()
Specified by:
getEnumeration in interface SchemaNode
Overrides:
getEnumeration in class SchemaNodeImpl

getActualNormalizedValue

public Object getActualNormalizedValue(String value)
                                throws NormalizationException
Specified by:
getActualNormalizedValue in interface SchemaNode
Overrides:
getActualNormalizedValue in class SchemaNodeImpl
Throws:
NormalizationException