org.apache.cxf.ws.policy.builder.jaxb
public class JaxbAssertionBuilder<T> extends Object implements AssertionBuilder
| 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 |
|---|---|
PolicyAssertion |
build(Element element)
Constructs an assertion from an xml element.
|
protected JaxbAssertion<T> |
buildAssertion() |
PolicyAssertion |
buildCompatible(PolicyAssertion a,
PolicyAssertion b)
Returns a new assertion that is compatible with the two specified
assertions or null if no compatible assertion can be built.
|
protected void |
createUnmarhsaller() |
protected T |
getData(Element element) |
Collection<QName> |
getKnownElements()
Returns a collection of QNames describing the xml schema types for which this
builder can build assertions.
|
protected boolean |
getOptionality(Element element) |
protected javax.xml.bind.Unmarshaller |
getUnmarshaller() |
public JaxbAssertionBuilder(QName qn) throws javax.xml.bind.JAXBException, ClassNotFoundException
qn - the schema typejavax.xml.bind.JAXBExceptionClassNotFoundExceptionpublic JaxbAssertionBuilder(String className, QName qn) throws javax.xml.bind.JAXBException, ClassNotFoundException
className - the name of the class to which the schema type is mappedqn - the schema typejavax.xml.bind.JAXBExceptionClassNotFoundExceptionpublic JaxbAssertionBuilder(Class<T> type, QName qn) throws javax.xml.bind.JAXBException
type - the class to which the schema type is mappedqn - the schema typejavax.xml.bind.JAXBExceptionClassNotFoundExceptionprotected javax.xml.bind.Unmarshaller getUnmarshaller()
protected void createUnmarhsaller()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic PolicyAssertion build(Element element)
AssertionBuilderbuild in interface AssertionBuilderelement - the element from which to build an assertionpublic Collection<QName> getKnownElements()
AssertionBuildergetKnownElements in interface AssertionBuilderpublic PolicyAssertion buildCompatible(PolicyAssertion a, PolicyAssertion b)
AssertionBuilderbuildCompatible in interface AssertionBuilderprotected JaxbAssertion<T> buildAssertion()
protected boolean getOptionality(Element element)
Apache CXF