org.apache.woden.wsdl20.extensions
Class GenericExtensionProperty

java.lang.Object
  extended by org.apache.woden.wsdl20.extensions.GenericExtensionProperty
All Implemented Interfaces:
ExtensionProperty

public class GenericExtensionProperty
extends java.lang.Object
implements ExtensionProperty

This class implements the ExtensionProperty interface to provide a generic representation of a component extension property.

This class may be used by implementors of WSDL 2.0 extensions when implementing the ExtensionProperty accessor methods of the ComponentExtensionContext interface. For example, when they extend the abstract class BaseComponentExtensionContext, which partially implements the ComponentExtensionContext interface.

Author:
John Kaputin (jkaputin@apache.org)
See Also:
ComponentExtensionContext, BaseComponentExtensionContext

Constructor Summary
GenericExtensionProperty(java.lang.String name, java.net.URI namespace, java.lang.Object content)
          This public constructor stores the extension property's name, namespace and content.
 
Method Summary
 java.lang.Object getContent()
          Returns the content of the extension property as a java.lang.Object.
 java.lang.String getName()
          Returns a String representing the name of the extension property.
 java.net.URI getNamespace()
          Returns a URI representing the namespace the extension property belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericExtensionProperty

public GenericExtensionProperty(java.lang.String name,
                                java.net.URI namespace,
                                java.lang.Object content)
This public constructor stores the extension property's name, namespace and content. The name and namespace parameters must not be null.

Parameters:
name - the String name of the extension property
namespace - the namespace URI of the extension property
content - an Object representing the content of the extension property
Throws:
java.lang.NullPointerException - if the name or namespace parameter is null
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ExtensionProperty
Returns a String representing the name of the extension property.

Specified by:
getName in interface ExtensionProperty
See Also:
ExtensionProperty.getName()

getNamespace

public java.net.URI getNamespace()
Description copied from interface: ExtensionProperty
Returns a URI representing the namespace the extension property belongs to.

Specified by:
getNamespace in interface ExtensionProperty
See Also:
ExtensionProperty.getNamespace()

getContent

public java.lang.Object getContent()
Description copied from interface: ExtensionProperty
Returns the content of the extension property as a java.lang.Object.

Specified by:
getContent in interface ExtensionProperty
See Also:
ExtensionProperty.getContent()


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.