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

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

public class AttributeSchemaNodeImpl
extends SimpleSchemaNodeImpl

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.sakaiproject.metaobj.utils.xml.impl.SchemaNodeImpl
SchemaNodeImpl.GlobalMaps
 
Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Fields inherited from class org.sakaiproject.metaobj.utils.xml.impl.SchemaNodeImpl
xsdNamespace
 
Constructor Summary
AttributeSchemaNodeImpl(org.jdom.Element schemaElement, SchemaNodeImpl.GlobalMaps globalMaps, boolean isAttribute)
           
 
Method Summary
 int getMaxOccurs()
          Retuns the max number of times the element defined by this node can occur in its parent.
 int getMinOccurs()
          Returns the min number of times the element defined by this node can occur in its parent.
protected  void initSchemaElement()
           
 
Methods inherited from class org.sakaiproject.metaobj.utils.xml.impl.SimpleSchemaNodeImpl
getActualNormalizedValue, getEnumeration, getMaxLength, getObjectType, getSchemaNormalizedValue, getType, isAttribute, isDataNode, validateAndNormalize, validateAndNormalize
 
Methods inherited from class org.sakaiproject.metaobj.utils.xml.impl.SchemaNodeImpl
createNode, createNode, createTypeNode, getAppAnnotation, getAppAnnotations, getChild, getChildren, getDocumentAnnotation, getDocumentAnnotations, getGlobalMaps, getName, getRootChildren, getSchemaElement, getTargetNamespace, hasEnumerations, processAnnotationList, processAnnotations, processAttributeGroup, processIncludes, setTargetNamespace, setupNamespaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

AttributeSchemaNodeImpl

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

initSchemaElement

protected void initSchemaElement()
Overrides:
initSchemaElement in class SimpleSchemaNodeImpl

getMaxOccurs

public int getMaxOccurs()
Retuns the max number of times the element defined by this node can occur in its parent. The root schema will always return 1 here.

Specified by:
getMaxOccurs in interface SchemaNode
Overrides:
getMaxOccurs in class SchemaNodeImpl
Returns:

getMinOccurs

public int getMinOccurs()
Returns the min number of times the element defined by this node can occur in its parent. The root schema will always return 1 here.

Specified by:
getMinOccurs in interface SchemaNode
Overrides:
getMinOccurs in class SchemaNodeImpl
Returns: