org.apache.neethi.builders.xml
Class XMLPrimitiveAssertionBuilder

java.lang.Object
  extended by org.apache.neethi.builders.xml.XMLPrimitiveAssertionBuilder
All Implemented Interfaces:
AssertionBuilder

public class XMLPrimitiveAssertionBuilder
extends Object
implements AssertionBuilder


Constructor Summary
XMLPrimitiveAssertionBuilder()
           
 
Method Summary
 Assertion build(org.apache.axiom.om.OMElement element, AssertionBuilderFactory factory)
          Constructs an assertion from a known OMElement.
 javax.xml.namespace.QName[] getKnownElements()
          Returns an array of QNames of OMElements from which assertion can be built by this AssertionFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLPrimitiveAssertionBuilder

public XMLPrimitiveAssertionBuilder()
Method Detail

build

public Assertion build(org.apache.axiom.om.OMElement element,
                       AssertionBuilderFactory factory)
                throws IllegalArgumentException
Description copied from interface: AssertionBuilder
Constructs an assertion from a known OMElement. If that element contains other child elements that the Builder doesn't understand, it uses the AssertionBuilderFactory to construct assertions from them.

Specified by:
build in interface AssertionBuilder
Parameters:
element - the known element from which an assertion can be built
factory - the factory from which AssertionBuilders are taken to build assertion from unknown child elements
Returns:
an Assertion built from the given element
Throws:
IllegalArgumentException - if the given element is malformed

getKnownElements

public javax.xml.namespace.QName[] getKnownElements()
Description copied from interface: AssertionBuilder
Returns an array of QNames of OMElements from which assertion can be built by this AssertionFactory.

Specified by:
getKnownElements in interface AssertionBuilder
Returns:
an array of QNames of known OMElements


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.