org.apache.woden.internal.wsdl20
Class TypeDefinitionImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.TypeDefinitionImpl
All Implemented Interfaces:
TypeDefinition

public class TypeDefinitionImpl
extends java.lang.Object
implements TypeDefinition

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

Author:
jkaputin@apache.org

Field Summary
 
Fields inherited from interface org.apache.woden.wsdl20.TypeDefinition
API_APACHE_WS_XS, API_W3C_DOM
 
Constructor Summary
TypeDefinitionImpl()
           
 
Method Summary
 java.lang.Object getContent()
          Returns the underlying type definition 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 type definition.
 QName getName()
          Representing the {name} property of the TypeDefinition component, this method returns the qualified name of this TypeDefinition.
 java.net.URI getSystem()
          Representing the {system} property of the TypeDefinition component, this method indicates the type system from which this type definition is derived.
 void setContent(java.lang.Object typeDefContent)
           
 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

TypeDefinitionImpl

public TypeDefinitionImpl()
Method Detail

getName

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

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

getSystem

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

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

getContentModel

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

For example:

Specified by:
getContentModel in interface TypeDefinition
Returns:
a String identifying the type definition's content model

getContent

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

Specified by:
getContent in interface TypeDefinition
Returns:
the Object representing the content of the type definition

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 typeDefContent)


Copyright © 2007. All Rights Reserved.