Class WebServiceClientAnnot
- java.lang.Object
-
- org.apache.axis2.jaxws.description.builder.WebServiceClientAnnot
-
- All Implemented Interfaces:
Annotation
public class WebServiceClientAnnot extends Object implements WebServiceClient
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Annotation>annotationType()static WebServiceClientAnnotcreateFromAnnotation(Annotation annotation)Create an instance of this annotation using the values from the annotation instance passed in.static WebServiceClientAnnotcreateFromAnnotation(Annotation baseAnnotation, Annotation sparseAnnotation)Create a new instance of this annotation using the values from the two annotations passed in as arguments.static WebServiceClientAnnotcreateWebServiceClientAnnotImpl()static WebServiceClientAnnotcreateWebServiceClientAnnotImpl(String name, String targetNamespace, String wsdlLocation)Stringname()voidsetName(String name)voidsetTargetNamespace(String targetNamespace)voidsetWsdlLocation(String wsdlLocation)StringtargetNamespace()StringtoString()Convenience method for unit testing.StringwsdlLocation()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
equals, hashCode
-
-
-
-
Method Detail
-
createWebServiceClientAnnotImpl
public static WebServiceClientAnnot createWebServiceClientAnnotImpl()
-
createWebServiceClientAnnotImpl
public static WebServiceClientAnnot createWebServiceClientAnnotImpl(String name, String targetNamespace, String wsdlLocation)
-
createFromAnnotation
public static WebServiceClientAnnot createFromAnnotation(Annotation annotation)
Create an instance of this annotation using the values from the annotation instance passed in.- Parameters:
annotation- Use the values to create a new instance of annotation. Note this could be an instance of the java annotation superclass as well.- Returns:
- a new instance of this annotation or null if one could not be created with the annotation passed in.
-
createFromAnnotation
public static WebServiceClientAnnot createFromAnnotation(Annotation baseAnnotation, Annotation sparseAnnotation)
Create a new instance of this annotation using the values from the two annotations passed in as arguments. If either is null, the new annotation is created with the non-null annotation's values. If both are null, then no annotation is created. Non-empty values in the sparse annotation (if any) will override the values in the base annotation.- Parameters:
baseAnnotation- Initial values to be used in creating the annotation. May be null.sparseAnnotation- Non-empty values (not null and not "") will override values in the base annotation.- Returns:
- A new annotation created from the arguments, or null if one could not be created.
-
name
public String name()
- Returns:
- Returns the name.
-
targetNamespace
public String targetNamespace()
- Returns:
- Returns the targetNamespace.
-
wsdlLocation
public String wsdlLocation()
- Returns:
- Returns the wsdlLocation.
-
setName
public void setName(String name)
- Parameters:
name- The name to set.
-
setTargetNamespace
public void setTargetNamespace(String targetNamespace)
- Parameters:
targetNamespace- The targetNamespace to set.
-
setWsdlLocation
public void setWsdlLocation(String wsdlLocation)
- Parameters:
wsdlLocation- The wsdlLocation to set.
-
annotationType
public Class<Annotation> annotationType()
- Specified by:
annotationTypein interfaceAnnotation
-
toString
public String toString()
Convenience method for unit testing. We will print all of the data members here.- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classObject
-
-