com.redhat.persistence.metadata
Class ObjectType

java.lang.Object
  extended bycom.redhat.persistence.metadata.Element
      extended bycom.redhat.persistence.metadata.ObjectType

public class ObjectType
extends com.redhat.persistence.metadata.Element

ObjectType

Version:
$Revision: #8 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>

Field Summary
static String versionId
           
 
Constructor Summary
ObjectType(Model model, String name, ObjectType supertype)
           
 
Method Summary
 void addImmediateProperty(Property prop)
           
 void addProperty(Property prop)
           
 boolean exists(Path path)
           
 ObjectType getBasetype()
           
 Collection getDeclaredProperties()
           
 Property getDeclaredProperty(String name)
           
 List getImmediateProperties()
           
 Class getJavaClass()
           
 List getKeyProperties()
           
 Model getModel()
           
 String getName()
           
 Collection getProperties()
           
 Property getProperty(Path path)
           
 Property getProperty(String name)
           
 String getQualifiedName()
           
 Collection getRoles()
           
 Root getRoot()
           
 ObjectType getSupertype()
           
 ObjectType getType(Path path)
           
 boolean hasDeclaredProperty(String name)
           
 boolean hasKey()
           
 boolean hasProperty(String name)
           
 boolean isCompound()
           
 boolean isImmediate(Path path)
           
 boolean isImmediate(Property prop)
           
 boolean isKey(Path path)
           
 boolean isKeyed()
           
 boolean isKeyProperty(Property prop)
           
 boolean isKeyProperty(String name)
           
 boolean isSubtypeOf(ObjectType type)
           
 boolean isSubtypeOf(String name)
           
 void setJavaClass(Class klass)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

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

ObjectType

public ObjectType(Model model,
                  String name,
                  ObjectType supertype)
Method Detail

getRoot

public Root getRoot()

getModel

public Model getModel()

getName

public String getName()

setJavaClass

public void setJavaClass(Class klass)

getJavaClass

public Class getJavaClass()

getQualifiedName

public String getQualifiedName()

getSupertype

public ObjectType getSupertype()

hasDeclaredProperty

public boolean hasDeclaredProperty(String name)

hasProperty

public boolean hasProperty(String name)

isKeyProperty

public boolean isKeyProperty(String name)

isKeyProperty

public boolean isKeyProperty(Property prop)

addProperty

public void addProperty(Property prop)

getDeclaredProperties

public Collection getDeclaredProperties()

getDeclaredProperty

public Property getDeclaredProperty(String name)

getProperties

public Collection getProperties()

getProperty

public Property getProperty(String name)

getProperty

public Property getProperty(Path path)

getType

public ObjectType getType(Path path)

exists

public boolean exists(Path path)

isKey

public boolean isKey(Path path)

isImmediate

public boolean isImmediate(Property prop)

isImmediate

public boolean isImmediate(Path path)

getKeyProperties

public List getKeyProperties()

getImmediateProperties

public List getImmediateProperties()

addImmediateProperty

public void addImmediateProperty(Property prop)

isKeyed

public boolean isKeyed()

hasKey

public boolean hasKey()

isCompound

public boolean isCompound()

getRoles

public Collection getRoles()

getBasetype

public ObjectType getBasetype()

isSubtypeOf

public boolean isSubtypeOf(String name)

isSubtypeOf

public boolean isSubtypeOf(ObjectType type)

toString

public String toString()


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