http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DescriptionType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DescriptionType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DescriptionType.java new file mode 100644 index 0000000..420ab9e --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DescriptionType.java @@ -0,0 +1,73 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + +/** + * The description type is used by a description element to provide text describing the parent element. The + * elements that use this type should include any information that the Deployment Component's Deployment File + * file producer wants to provide to the consumer of the Deployment Component's Deployment File (i.e., to the + * Deployer). Typically, the tools used by such a Deployment File consumer will display the description when + * processing the parent element that contains the description. The lang attribute defines the language that + * the description is provided in. The default value is "en" (English). + * <p> + * Java class for descriptionType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="descriptionType"> + * <simpleContent> + * <extension base="<http://java.sun.com/xml/ns/javaee>xsdStringType"> + * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> + * </extension> + * </simpleContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "descriptionType") +public class DescriptionType extends XsdStringType { + + @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") + protected java.lang.String lang; + + /** + * Gets the value of the lang property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setLang(java.lang.String value) { + this.lang = value; + } + +}
http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DisplayNameType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DisplayNameType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DisplayNameType.java new file mode 100644 index 0000000..f3bae21 --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/DisplayNameType.java @@ -0,0 +1,70 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + +/** + * The display-name type contains a short name that is intended to be displayed by tools. It is used by + * display-name elements. The display name need not be unique. Example: ... <display-name xml:lang="en"> + * Employee Self Service </display-name> The value of the xml:lang attribute is "en" (English) by default. + * <p> + * Java class for display-nameType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="display-nameType"> + * <simpleContent> + * <extension base="<http://java.sun.com/xml/ns/javaee>string"> + * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> + * </extension> + * </simpleContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "display-nameType") +public class DisplayNameType extends CString { + + @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") + protected java.lang.String lang; + + /** + * Gets the value of the lang property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setLang(java.lang.String value) { + this.lang = value; + } + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/FullyQualifiedClassType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/FullyQualifiedClassType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/FullyQualifiedClassType.java new file mode 100644 index 0000000..c7bcb2a --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/FullyQualifiedClassType.java @@ -0,0 +1,48 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + +/** + * The elements that use this type designate the name of a Java class or interface. The name is in the form of + * a "binary name", as defined in the JLS. This is the form of name used in Class.forName(). Tools that need + * the canonical name (the name used in source code) will need to convert this binary name to the canonical + * name. + * <p> + * Java class for fully-qualified-classType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="fully-qualified-classType"> + * <simpleContent> + * <restriction base="<http://java.sun.com/xml/ns/javaee>string"> + * </restriction> + * </simpleContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "fully-qualified-classType") +public class FullyQualifiedClassType extends CString { + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/IconType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/IconType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/IconType.java new file mode 100644 index 0000000..8bcfc2b --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/IconType.java @@ -0,0 +1,142 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + +/** + * The icon type contains small-icon and large-icon elements that specify the file names for small and large + * GIF, JPEG, or PNG icon images used to represent the parent element in a GUI tool. The xml:lang attribute + * defines the language that the icon file names are provided in. Its value is "en" (English) by default. + * <p> + * Java class for iconType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="iconType"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="small-icon" type="{http://java.sun.com/xml/ns/javaee}pathType" minOccurs="0"/> + * <element name="large-icon" type="{http://java.sun.com/xml/ns/javaee}pathType" minOccurs="0"/> + * </sequence> + * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "iconType", propOrder = { + "smallIcon", "largeIcon" }) +public class IconType { + + @XmlElement(name = "small-icon") + protected PathType smallIcon; + @XmlElement(name = "large-icon") + protected PathType largeIcon; + @XmlAttribute + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected java.lang.String id; + @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") + protected java.lang.String lang; + + /** + * Gets the value of the smallIcon property. + * + * @return possible object is {@link PathType } + */ + public PathType getSmallIcon() { + return smallIcon; + } + + /** + * Sets the value of the smallIcon property. + * + * @param value allowed object is {@link PathType } + */ + public void setSmallIcon(PathType value) { + this.smallIcon = value; + } + + /** + * Gets the value of the largeIcon property. + * + * @return possible object is {@link PathType } + */ + public PathType getLargeIcon() { + return largeIcon; + } + + /** + * Sets the value of the largeIcon property. + * + * @param value allowed object is {@link PathType } + */ + public void setLargeIcon(PathType value) { + this.largeIcon = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setId(java.lang.String value) { + this.id = value; + } + + /** + * Gets the value of the lang property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setLang(java.lang.String value) { + this.lang = value; + } + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/ParamValueType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/ParamValueType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/ParamValueType.java new file mode 100644 index 0000000..c1734fe --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/ParamValueType.java @@ -0,0 +1,147 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + +/** + * This type is a general type that can be used to declare parameter/value lists. + * <p> + * Java class for param-valueType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="param-valueType"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" + * maxOccurs="unbounded" minOccurs="0"/> + * <element name="param-name" type="{http://java.sun.com/xml/ns/javaee}string"/> + * <element name="param-value" type="{http://java.sun.com/xml/ns/javaee}xsdStringType"/> + * </sequence> + * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "param-valueType", propOrder = { + "description", "paramName", "paramValue" }) +public class ParamValueType { + + protected List<DescriptionType> description; + @XmlElement(name = "param-name", required = true) + protected CString paramName; + @XmlElement(name = "param-value", required = true) + protected XsdStringType paramValue; + @XmlAttribute + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected java.lang.String id; + + /** + * Gets the value of the description property. + * <p> + * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification + * you make to the returned list will be present inside the JAXB object. This is why there is not a + * <CODE>set</CODE> method for the description property. + * <p> + * For example, to add a new item, do as follows: + * + * <pre> + * getDescription().add(newItem); + * </pre> + * <p> + * Objects of the following type(s) are allowed in the list {@link DescriptionType } + */ + public List<DescriptionType> getDescription() { + if (description == null) { + description = new ArrayList<DescriptionType>(); + } + return this.description; + } + + /** + * Gets the value of the paramName property. + * + * @return possible object is {@link CString } + */ + public CString getParamName() { + return paramName; + } + + /** + * Sets the value of the paramName property. + * + * @param value allowed object is {@link CString } + */ + public void setParamName(CString value) { + this.paramName = value; + } + + /** + * Gets the value of the paramValue property. + * + * @return possible object is {@link XsdStringType } + */ + public XsdStringType getParamValue() { + return paramValue; + } + + /** + * Sets the value of the paramValue property. + * + * @param value allowed object is {@link XsdStringType } + */ + public void setParamValue(XsdStringType value) { + this.paramValue = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setId(java.lang.String value) { + this.id = value; + } + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PathType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PathType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PathType.java new file mode 100644 index 0000000..cb6ca5d --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PathType.java @@ -0,0 +1,50 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + +/** + * The elements that use this type designate either a relative path or an absolute path starting with a "/". + * In elements that specify a pathname to a file within the same Deployment File, relative filenames (i.e., + * those not starting with "/") are considered relative to the root of the Deployment File's namespace. + * Absolute filenames (i.e., those starting with "/") also specify names in the root of the Deployment File's + * namespace. In general, relative names are preferred. The exception is .war files where absolute names are + * preferred for consistency with the Servlet API. + * <p> + * Java class for pathType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="pathType"> + * <simpleContent> + * <restriction base="<http://java.sun.com/xml/ns/javaee>string"> + * </restriction> + * </simpleContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "pathType") +public class PathType extends CString { + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PortComponentHandlerType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PortComponentHandlerType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PortComponentHandlerType.java new file mode 100644 index 0000000..b95ae73 --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/PortComponentHandlerType.java @@ -0,0 +1,277 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + +/** + * Declares the handler for a port-component. Handlers can access the init-param name/value pairs using the + * HandlerInfo interface. Used in: port-component + * <p> + * Java class for port-component_handlerType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="port-component_handlerType"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <group ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/> + * <element name="handler-name" type="{http://java.sun.com/xml/ns/javaee}string"/> + * <element name="handler-class" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType"/> + * <element name="init-param" type="{http://java.sun.com/xml/ns/javaee}param-valueType" + * maxOccurs="unbounded" minOccurs="0"/> + * <element name="soap-header" type="{http://java.sun.com/xml/ns/javaee}xsdQNameType" + * maxOccurs="unbounded" minOccurs="0"/> + * <element name="soap-role" type="{http://java.sun.com/xml/ns/javaee}string" + * maxOccurs="unbounded" minOccurs="0"/> + * </sequence> + * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "port-component_handlerType", propOrder = { + "description", "displayName", "icon", "handlerName", "handlerClass", "initParam", "soapHeader", + "soapRole" }) +public class PortComponentHandlerType { + + protected List<DescriptionType> description; + @XmlElement(name = "display-name") + protected List<DisplayNameType> displayName; + protected List<IconType> icon; + @XmlElement(name = "handler-name", required = true) + protected CString handlerName; + @XmlElement(name = "handler-class", required = true) + protected FullyQualifiedClassType handlerClass; + @XmlElement(name = "init-param") + protected List<ParamValueType> initParam; + @XmlElement(name = "soap-header") + protected List<XsdQNameType> soapHeader; + @XmlElement(name = "soap-role") + protected List<CString> soapRole; + @XmlAttribute + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected java.lang.String id; + + /** + * Gets the value of the description property. + * <p> + * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification + * you make to the returned list will be present inside the JAXB object. This is why there is not a + * <CODE>set</CODE> method for the description property. + * <p> + * For example, to add a new item, do as follows: + * + * <pre> + * getDescription().add(newItem); + * </pre> + * <p> + * Objects of the following type(s) are allowed in the list {@link DescriptionType } + */ + public List<DescriptionType> getDescription() { + if (description == null) { + description = new ArrayList<DescriptionType>(); + } + return this.description; + } + + /** + * Gets the value of the displayName property. + * <p> + * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification + * you make to the returned list will be present inside the JAXB object. This is why there is not a + * <CODE>set</CODE> method for the displayName property. + * <p> + * For example, to add a new item, do as follows: + * + * <pre> + * getDisplayName().add(newItem); + * </pre> + * <p> + * Objects of the following type(s) are allowed in the list {@link DisplayNameType } + */ + public List<DisplayNameType> getDisplayName() { + if (displayName == null) { + displayName = new ArrayList<DisplayNameType>(); + } + return this.displayName; + } + + /** + * Gets the value of the icon property. + * <p> + * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification + * you make to the returned list will be present inside the JAXB object. This is why there is not a + * <CODE>set</CODE> method for the icon property. + * <p> + * For example, to add a new item, do as follows: + * + * <pre> + * getIcon().add(newItem); + * </pre> + * <p> + * Objects of the following type(s) are allowed in the list {@link IconType } + */ + public List<IconType> getIcon() { + if (icon == null) { + icon = new ArrayList<IconType>(); + } + return this.icon; + } + + /** + * Gets the value of the handlerName property. + * + * @return possible object is {@link CString } + */ + public CString getHandlerName() { + if (handlerName == null) { + handlerName = new CString(); + handlerName.setValue(""); + } + return handlerName; + } + + /** + * Sets the value of the handlerName property. + * + * @param value allowed object is {@link CString } + */ + public void setHandlerName(CString value) { + this.handlerName = value; + } + + /** + * Gets the value of the handlerClass property. + * + * @return possible object is {@link FullyQualifiedClassType } + */ + public FullyQualifiedClassType getHandlerClass() { + return handlerClass; + } + + /** + * Sets the value of the handlerClass property. + * + * @param value allowed object is {@link FullyQualifiedClassType } + */ + public void setHandlerClass(FullyQualifiedClassType value) { + this.handlerClass = value; + } + + /** + * Gets the value of the initParam property. + * <p> + * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification + * you make to the returned list will be present inside the JAXB object. This is why there is not a + * <CODE>set</CODE> method for the initParam property. + * <p> + * For example, to add a new item, do as follows: + * + * <pre> + * getInitParam().add(newItem); + * </pre> + * <p> + * Objects of the following type(s) are allowed in the list {@link ParamValueType } + */ + public List<ParamValueType> getInitParam() { + if (initParam == null) { + initParam = new ArrayList<ParamValueType>(); + } + return this.initParam; + } + + /** + * Gets the value of the soapHeader property. + * <p> + * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification + * you make to the returned list will be present inside the JAXB object. This is why there is not a + * <CODE>set</CODE> method for the soapHeader property. + * <p> + * For example, to add a new item, do as follows: + * + * <pre> + * getSoapHeader().add(newItem); + * </pre> + * <p> + * Objects of the following type(s) are allowed in the list {@link XsdQNameType } + */ + public List<XsdQNameType> getSoapHeader() { + if (soapHeader == null) { + soapHeader = new ArrayList<XsdQNameType>(); + } + return this.soapHeader; + } + + /** + * Gets the value of the soapRole property. + * <p> + * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification + * you make to the returned list will be present inside the JAXB object. This is why there is not a + * <CODE>set</CODE> method for the soapRole property. + * <p> + * For example, to add a new item, do as follows: + * + * <pre> + * getSoapRole().add(newItem); + * </pre> + * <p> + * Objects of the following type(s) are allowed in the list {@link CString } + */ + public List<CString> getSoapRole() { + if (soapRole == null) { + soapRole = new ArrayList<CString>(); + } + return this.soapRole; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setId(java.lang.String value) { + this.id = value; + } + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdQNameType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdQNameType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdQNameType.java new file mode 100644 index 0000000..83b6a27 --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdQNameType.java @@ -0,0 +1,95 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.namespace.QName; + +/** + * This type adds an "id" attribute to xsd:QName. + * <p> + * Java class for xsdQNameType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="xsdQNameType"> + * <simpleContent> + * <extension base="<http://www.w3.org/2001/XMLSchema>QName"> + * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + * </extension> + * </simpleContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "xsdQNameType", propOrder = { "value" }) +public class XsdQNameType { + + @XmlValue + protected QName value; + @XmlAttribute + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected java.lang.String id; + + /** + * Gets the value of the value property. + * + * @return possible object is {@link QName } + */ + public QName getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link QName } + */ + public void setValue(QName value) { + this.value = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setId(java.lang.String v) { + this.id = v; + } + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdStringType.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdStringType.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdStringType.java new file mode 100644 index 0000000..7124467 --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/XsdStringType.java @@ -0,0 +1,94 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.cxf.jaxws.handler.types; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + +/** + * This type adds an "id" attribute to xsd:string. + * <p> + * Java class for xsdStringType complex type. + * <p> + * The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="xsdStringType"> + * <simpleContent> + * <extension base="<http://www.w3.org/2001/XMLSchema>string"> + * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> + * </extension> + * </simpleContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "xsdStringType", propOrder = { "value" }) +public class XsdStringType { + + @XmlValue + protected java.lang.String value; + @XmlAttribute + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected java.lang.String id; + + /** + * Gets the value of the value property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setValue(java.lang.String value) { + this.value = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link java.lang.String } + */ + public java.lang.String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link java.lang.String } + */ + public void setId(java.lang.String v) { + this.id = v; + } + +} http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/package-info.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/package-info.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/package-info.java new file mode 100644 index 0000000..9c73e46 --- /dev/null +++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/types/package-info.java @@ -0,0 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ [email protected](namespace = "http://java.sun.com/xml/ns/javaee", + elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package org.apache.cxf.jaxws.handler.types; + http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JaxWsServerFactoryBeanTest.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JaxWsServerFactoryBeanTest.java b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JaxWsServerFactoryBeanTest.java index e783cf9..487bafb 100644 --- a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JaxWsServerFactoryBeanTest.java +++ b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JaxWsServerFactoryBeanTest.java @@ -34,8 +34,8 @@ import org.apache.cxf.endpoint.Server; import org.apache.cxf.frontend.ServerFactoryBean; import org.apache.cxf.helpers.XPathUtils; import org.apache.cxf.jaxb.JAXBDataBinding; -import org.apache.cxf.jaxws.javaee.DescriptionType; -import org.apache.cxf.jaxws.javaee.DisplayNameType; +import org.apache.cxf.jaxws.handler.types.DescriptionType; +import org.apache.cxf.jaxws.handler.types.DisplayNameType; import org.apache.cxf.jaxws.service.Hello; import org.apache.cxf.service.model.ServiceInfo; import org.apache.cxf.wsdl.WSDLManager; http://git-wip-us.apache.org/repos/asf/cxf/blob/72171325/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/HandlerChainBuilderTest.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/HandlerChainBuilderTest.java b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/HandlerChainBuilderTest.java index fc64f3b..7ae1b60 100644 --- a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/HandlerChainBuilderTest.java +++ b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/HandlerChainBuilderTest.java @@ -30,10 +30,13 @@ import javax.xml.ws.handler.LogicalHandler; import javax.xml.ws.handler.MessageContext; import org.apache.cxf.Bus; -import org.apache.cxf.jaxws.javaee.FullyQualifiedClassType; -import org.apache.cxf.jaxws.javaee.ParamValueType; -import org.apache.cxf.jaxws.javaee.PortComponentHandlerType; +import org.apache.cxf.jaxws.handler.types.CString; +import org.apache.cxf.jaxws.handler.types.FullyQualifiedClassType; +import org.apache.cxf.jaxws.handler.types.ParamValueType; +import org.apache.cxf.jaxws.handler.types.PortComponentHandlerType; +import org.apache.cxf.jaxws.handler.types.XsdStringType; import org.easymock.EasyMock; + import org.junit.Assert; import org.junit.Test; @@ -86,19 +89,19 @@ public class HandlerChainBuilderTest extends Assert { List<ParamValueType> params = h.getInitParam(); ParamValueType p = new ParamValueType(); - org.apache.cxf.jaxws.javaee.CString pName = new org.apache.cxf.jaxws.javaee.CString(); + CString pName = new CString(); pName.setValue("foo"); p.setParamName(pName); - org.apache.cxf.jaxws.javaee.XsdStringType pValue = new org.apache.cxf.jaxws.javaee.XsdStringType(); + XsdStringType pValue = new XsdStringType(); pValue.setValue("1"); p.setParamValue(pValue); params.add(p); p = new ParamValueType(); - pName = new org.apache.cxf.jaxws.javaee.CString(); + pName = new CString(); pName.setValue("bar"); p.setParamName(pName); - pValue = new org.apache.cxf.jaxws.javaee.XsdStringType(); + pValue = new XsdStringType(); pValue.setValue("2"); p.setParamValue(pValue); params.add(p); @@ -127,7 +130,7 @@ public class HandlerChainBuilderTest extends Assert { List<ParamValueType> params = h.getInitParam(); ParamValueType p = new ParamValueType(); - org.apache.cxf.jaxws.javaee.CString pName = new org.apache.cxf.jaxws.javaee.CString(); + CString pName = new CString(); pName.setValue("foo"); p.setParamName(pName); params.add(p); @@ -166,7 +169,7 @@ public class HandlerChainBuilderTest extends Assert { List<PortComponentHandlerType> handlers = new ArrayList<PortComponentHandlerType>(); PortComponentHandlerType h = new PortComponentHandlerType(); - org.apache.cxf.jaxws.javaee.CString name = new org.apache.cxf.jaxws.javaee.CString(); + CString name = new CString(); name.setValue("lh1"); h.setHandlerName(name); FullyQualifiedClassType type = new FullyQualifiedClassType(); @@ -175,7 +178,7 @@ public class HandlerChainBuilderTest extends Assert { handlers.add(h); h = new PortComponentHandlerType(); - name = new org.apache.cxf.jaxws.javaee.CString(); + name = new CString(); name.setValue("ph1"); h.setHandlerName(name); type = new FullyQualifiedClassType(); @@ -184,7 +187,7 @@ public class HandlerChainBuilderTest extends Assert { handlers.add(h); h = new PortComponentHandlerType(); - name = new org.apache.cxf.jaxws.javaee.CString(); + name = new CString(); name.setValue("ph2"); h.setHandlerName(name); type = new FullyQualifiedClassType(); @@ -193,7 +196,7 @@ public class HandlerChainBuilderTest extends Assert { handlers.add(h); h = new PortComponentHandlerType(); - name = new org.apache.cxf.jaxws.javaee.CString(); + name = new CString(); name.setValue("lh2"); h.setHandlerName(name); type = new FullyQualifiedClassType();
