public class JaxbAssertionBuilder<T> extends Object implements org.apache.neethi.builders.AssertionBuilder<Element>
Constructor and Description |
---|
JaxbAssertionBuilder(Class<T> type,
QName qn)
Constructs a JAXBAssertionBuilder from the specified class and schema type.
|
JaxbAssertionBuilder(QName qn)
Constructs a JAXBAssertionBuilder from the QName of the schema type
|
JaxbAssertionBuilder(String className,
QName qn)
Constructs a JAXBAssertionBuilder from the specified class name and schema type.
|
Modifier and Type | Method and Description |
---|---|
org.apache.neethi.Assertion |
build(Element element,
org.apache.neethi.AssertionBuilderFactory factory) |
protected JaxbAssertion<T> |
buildAssertion() |
protected T |
getData(Element element) |
QName[] |
getKnownElements() |
protected boolean |
getOptionality(Element element) |
protected Unmarshaller |
getUnmarshaller() |
public JaxbAssertionBuilder(QName qn) throws JAXBException, ClassNotFoundException
qn
- the schema typeJAXBException
ClassNotFoundException
public JaxbAssertionBuilder(String className, QName qn) throws JAXBException, ClassNotFoundException
className
- the name of the class to which the schema type is mappedqn
- the schema typeJAXBException
ClassNotFoundException
public JaxbAssertionBuilder(Class<T> type, QName qn) throws JAXBException
type
- the class to which the schema type is mappedqn
- the schema typeJAXBException
ClassNotFoundException
protected Unmarshaller getUnmarshaller()
public org.apache.neethi.Assertion build(Element element, org.apache.neethi.AssertionBuilderFactory factory)
build
in interface org.apache.neethi.builders.AssertionBuilder<Element>
public QName[] getKnownElements()
getKnownElements
in interface org.apache.neethi.builders.AssertionBuilder<Element>
protected JaxbAssertion<T> buildAssertion()
protected boolean getOptionality(Element element)
Apache CXF