|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface JBossXmlNsPrefix
Sometimes, it is desirable to bind a class into different schemas with different namespaces or bind a class hierarchy into a specific target namespace and some of the classes into a different namespace the value of which depends on the root element's namespace. XmlElement's namespace attribute cannot be used in a case like that. What we need is to specify a prefix instead of the namespace itself and define the namespace to prefix mapping in the JBossXmlSchema annotation. This annotation is used to reference a namespace by its prefix.
Required Element Summary | |
---|---|
String |
prefix
|
Optional Element Summary | |
---|---|
boolean |
applyToComponentContent
True means the type of the property (including its child elements, their types and model groups recursively) will be bound to the namespace specified by the prefix. |
boolean |
applyToComponentQName
True means the element or model group the property is bound to will be bound to the namespace specified by the prefix. |
boolean |
schemaTargetIfNotMapped
If the prefix mapping is not found and the value is true then the target schema namespace will be used, if the value is false then an exception will be thrown. |
Element Detail |
---|
public abstract String prefix
public abstract boolean schemaTargetIfNotMapped
public abstract boolean applyToComponentQName
public abstract boolean applyToComponentContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |