com.arsdigita.persistence.metadata
Class Model

java.lang.Object
  extended bycom.arsdigita.persistence.metadata.Element
      extended bycom.arsdigita.persistence.metadata.Model

public class Model
extends Element

A Model provides a logical namespace for a related set of ObjectTypes and Associations.

Version:
$Revision: #10 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
static String versionId
           
 
Method Summary
 Set getAssociations()
           
 DataType getDataType(String name)
          Returns the DataType with the given name.
 String getName()
          Returns the name of this Model.
 ObjectType getObjectType(String name)
          Returns the ObjectType with the given name.
 Collection getObjectTypes()
          Returns a collection of ObjectTypes that this Model contains
 boolean hasDataType(String name)
          Returns true if this Model contains a DataType with the given name.
 
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
Method Detail

getName

public String getName()
Returns the name of this Model.

Returns:
The name of this Model.

getDataType

public DataType getDataType(String name)
Returns the DataType with the given name.

Parameters:
name - The name of the datatype to get.
Returns:
The DataType with the given name.

hasDataType

public boolean hasDataType(String name)
Returns true if this Model contains a DataType with the given name.

Returns:
True if this Model contains a DataType with the given name.

getObjectType

public ObjectType getObjectType(String name)
Returns the ObjectType with the given name.

Parameters:
name - The name of the ObjectType to get.
Returns:
The ObjectType with the given name.

getObjectTypes

public Collection getObjectTypes()
Returns a collection of ObjectTypes that this Model contains

Returns:
a collection of ObjectTypes that this Model contains

getAssociations

public Set getAssociations()


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