org.deegree.commons.tom.primitive
Class PrimitiveType

java.lang.Object
  extended by org.deegree.commons.tom.primitive.PrimitiveType

public class PrimitiveType
extends Object

Defines a primitive type.

Version:
$Revision: 30768 $, $Date: 2011-05-10 17:39:43 +0200 (Tue, 10 May 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
PrimitiveType(BaseType baseType)
          Creates a new PrimitiveType instance for the given BaseType.
PrimitiveType(org.apache.xerces.xs.XSSimpleTypeDefinition xsType)
          Creates a new PrimitiveType instance for the given XSSimpleTypeDefinition.
 
Method Summary
 BaseType getBaseType()
          Returns the base type.
 org.apache.xerces.xs.XSSimpleTypeDefinition getXSType()
          Returns the XML schema simple type definition.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrimitiveType

public PrimitiveType(BaseType baseType)
Creates a new PrimitiveType instance for the given BaseType.

Parameters:
baseType - base type, must not be null

PrimitiveType

public PrimitiveType(org.apache.xerces.xs.XSSimpleTypeDefinition xsType)
Creates a new PrimitiveType instance for the given XSSimpleTypeDefinition.

Parameters:
xsType - XML schema type, must not be null
Method Detail

getBaseType

public BaseType getBaseType()
Returns the base type.

Returns:
base type, never null

getXSType

public org.apache.xerces.xs.XSSimpleTypeDefinition getXSType()
Returns the XML schema simple type definition.

Returns:
XML schema simple type definition, can be null

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.