org.apache.woden.internal.wsdl20
Class ElementDeclarationImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.ElementDeclarationImpl
All Implemented Interfaces:
ElementDeclaration

public class ElementDeclarationImpl
extends java.lang.Object
implements ElementDeclaration

This class represents an ElementDeclaration property of the Description component. It refers to a global element declaration provided by the underlying type system (e.g. XML Schema)

Author:
jkaputin@apache.org

Field Summary
 
Fields inherited from interface org.apache.woden.wsdl20.ElementDeclaration
API_APACHE_WS_XS, API_W3C_DOM
 
Constructor Summary
ElementDeclarationImpl()
           
 
Method Summary
 java.lang.Object getContent()
          Returns the underlying element declaration as a java.lang.Object, which should be cast to the appropriate type as indicated by the getContentModel() method.
 java.lang.String getContentModel()
          Indicates the type of object model or API which should be used to access the content of the underlying element declaration.
 QName getName()
          Representing the {name} property of the ElementDeclaration component, this method returns the qualified name of this ElementDeclaration.
 java.net.URI getSystem()
          Representing the {system} property of the ElementDeclaration component, this method indicates the type system from which this element declaration is derived.
 void setContent(java.lang.Object elementContent)
           
 void setContentModel(java.lang.String contentModel)
           
 void setName(QName name)
           
 void setSystem(java.net.URI typeSystemURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementDeclarationImpl

public ElementDeclarationImpl()
Method Detail

getName

public QName getName()
Description copied from interface: ElementDeclaration
Representing the {name} property of the ElementDeclaration component, this method returns the qualified name of this ElementDeclaration.

Specified by:
getName in interface ElementDeclaration
Returns:
the QName that identifies this ElementDeclaration

getSystem

public java.net.URI getSystem()
Description copied from interface: ElementDeclaration
Representing the {system} property of the ElementDeclaration component, this method indicates the type system from which this element declaration is derived. For example, "http://www.w3.org/2001/XMLSchema" indicates the W3C XML Schema type system.

Specified by:
getSystem in interface ElementDeclaration
Returns:
the URI identifying the type system

getContentModel

public java.lang.String getContentModel()
Description copied from interface: ElementDeclaration
Indicates the type of object model or API which should be used to access the content of the underlying element declaration. This can be used to determine how to cast the Object returned by the getContent() method.

For example:

Specified by:
getContentModel in interface ElementDeclaration
Returns:
a String identifying the element declaration's content model

getContent

public java.lang.Object getContent()
Description copied from interface: ElementDeclaration
Returns the underlying element declaration as a java.lang.Object, which should be cast to the appropriate type as indicated by the getContentModel() method.

Specified by:
getContent in interface ElementDeclaration
Returns:
the Object representing the content of the element declaration

setName

public void setName(QName name)

setSystem

public void setSystem(java.net.URI typeSystemURI)

setContentModel

public void setContentModel(java.lang.String contentModel)

setContent

public void setContent(java.lang.Object elementContent)


Copyright © 2007. All Rights Reserved.