org.ow2.bonita.pvm.internal.wire.binding
Class AbstractCollectionBinding

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.util.TagBinding
      extended by org.ow2.bonita.pvm.internal.wire.binding.WireBinding
          extended by org.ow2.bonita.pvm.internal.wire.binding.WireDescriptorBinding
              extended by org.ow2.bonita.pvm.internal.wire.binding.AbstractCollectionBinding
All Implemented Interfaces:
Binding
Direct Known Subclasses:
ListBinding, SetBinding

public abstract class AbstractCollectionBinding
extends WireDescriptorBinding


Field Summary
 
Fields inherited from class org.ow2.bonita.pvm.internal.util.TagBinding
category, namespaceUri, tagName
 
Constructor Summary
AbstractCollectionBinding(java.lang.String tagName)
           
 
Method Summary
protected abstract  CollectionDescriptor createDescriptor()
           
protected abstract  java.lang.Class<?> getCollectionInterface()
           
 java.lang.Object parse(org.w3c.dom.Element element, Parse parse, Parser parser)
          translates the given element into a domain model java object.
static boolean verify(java.lang.String className, java.lang.Class<?> collectionInterface, Parse parse, Parser parser)
          verifies if the given classname is specified and implements the collection interface
 
Methods inherited from class org.ow2.bonita.pvm.internal.util.TagBinding
getCategory, matches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCollectionBinding

public AbstractCollectionBinding(java.lang.String tagName)
Method Detail

parse

public java.lang.Object parse(org.w3c.dom.Element element,
                              Parse parse,
                              Parser parser)
Description copied from interface: Binding
translates the given element into a domain model java object. Use the parse to report problems.

Returns:
the domain model java object.
See Also:
Parser

verify

public static boolean verify(java.lang.String className,
                             java.lang.Class<?> collectionInterface,
                             Parse parse,
                             Parser parser)
verifies if the given classname is specified and implements the collection interface


getCollectionInterface

protected abstract java.lang.Class<?> getCollectionInterface()

createDescriptor

protected abstract CollectionDescriptor createDescriptor()


Copyright © 2009 OW2 Consortium. All Rights Reserved.