com.arsdigita.persistence.metadata
Class DataType

java.lang.Object
  extended bycom.arsdigita.persistence.metadata.Element
      extended bycom.arsdigita.persistence.metadata.ModelElement
          extended bycom.arsdigita.persistence.metadata.DataType
Direct Known Subclasses:
CompoundType, SimpleType

public abstract class DataType
extends ModelElement

The DataType class represents the type of a persistently stored datum. There are two flavors of DataTypes. SimpleTypes, and CompoundTypes. CompoundTypes are defined in terms of other DataTypes both simple and compound. Any value returned by the persistence layer must have an associated DataType object.

Version:
$Revision: #9 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu
See Also:
SimpleType, CompoundType

Field Summary
static String versionId
           
 
Constructor Summary
protected DataType(ObjectType obj)
          Constructs a new DataType with the given name.
 
Method Summary
 String getName()
          Returns the semantically meaningful name of this datatype.
 String getQualifiedName()
          Returns the fully qualified name of this DataType.
 boolean isCompound()
          Returns true if this DataType is a compound type, false otherwise.
 boolean isSimple()
          Returns true if this DataType is a simple type, false otherwise.
 
Methods inherited from class com.arsdigita.persistence.metadata.ModelElement
getModel
 
Methods inherited from class com.arsdigita.persistence.metadata.Element
equals, getColumnNumber, getFilename, getLineNumber, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DataType

protected DataType(ObjectType obj)
Constructs a new DataType with the given name.

Method Detail

getName

public String getName()
Returns the semantically meaningful name of this datatype.

Returns:
the semantically meaningful name of this datatype.

getQualifiedName

public String getQualifiedName()
Returns the fully qualified name of this DataType. The fully qualified name consists of the model name followed by a "." followed by the name of this DataType.

Returns:
The fully qualified name of this DataType.

isCompound

public boolean isCompound()
Returns true if this DataType is a compound type, false otherwise. Compound types are composed of other data types both simple and compound.

Returns:
True if this DataType is a compound type. False otherwise.

isSimple

public boolean isSimple()
Returns true if this DataType is a simple type, false otherwise. Simple types are not composed of other data types. They are the basic atoms from which compound types can be created.

Returns:
True if this DataType is a simple type. False otherwise.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC