users@jaxb.java.net

Re: need a syntax to perform custom binding for anonimus complexType

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Tue, 21 Feb 2012 15:05:58 +0100

I do not understand your request. In what way would setting the namespace for
the target namespace of this XML Schema type help you? What do you
want to achieve?

-W



On 21/02/2012, shtek <shtek_at_yahoo.com> wrote:
>
> I need a syntax to perform custom binding for complexType which is anonimus
> <complexType>...</ComplexType>
> by default it creates a class whic looks like that:
> /**
> * <p>Java class for anonymous complex type.
> *
> * <p>The following schema fragment specifies the expected content
> contained within this class.
> *
> * <pre>
> * &lt;complexType>
> * &lt;complexContent>
> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
> * &lt;sequence>
> * &lt;element name="correlatedNotification"
> type="{http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf}correlatedNotification"
> minOccurs="0"/>
> * &lt;element name="additionalText"
> type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
> * &lt;element name="sourceIndicator"
> type="{http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf}SourceIndicatorType"
> minOccurs="0"/>
> * &lt;element name="attributeList"
> type="{http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf}AnyNrm"
> minOccurs="0"/>
> * &lt;/sequence>
> * &lt;/restriction>
> * &lt;/complexContent>
> * &lt;/complexType>
> * </pre>
> *
> *
> */
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "", propOrder = {
> "correlatedNotification",
> "additionalText",
> "sourceIndicator",
> "attributeList"
> })
> public static class Body {
>
> @XmlElement(namespace =
> "http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf")
> protected CorrelatedNotification correlatedNotification;
> @XmlElement(namespace =
> "http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf")
> protected String additionalText;
> @XmlElement(namespace =
> "http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf")
> protected SourceIndicatorType sourceIndicator;
> @XmlElement(namespace =
> "http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf")
> protected AnyNrm attributeList;
>
> /**
>
>
>
> I need to add the namespace to the XMLType so it look slike this :
>
> @XmlType(name = "",
> namespace="http://www.3gpp.org/ftp/specs/archive/32_series/32.665#kernelNtf"
> propOrder = {
> "correlatedNotification",
> "additionalText",
> "sourceIndicator",
> "attributeList"
> })
>
> Please help with binding syntax that I can use in an external binding file
>
>
> --
> View this message in context:
> http://old.nabble.com/need-a-syntax-to-perform-custom-binding-for-anonimus-complexType-tp33363941p33363941.html
> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>