org.mindswap.ocl
Interface OCLObject

All Known Implementing Classes:
OCLObjectImpl

public interface OCLObject

Title: OCLObject

Description: An interface for the abstract representation of a java object

Copyright: Copyright (c) 2005

Company:


Method Summary
 void addJar(java.lang.String theJar)
          Adds a new remote jar url.
 java.lang.Object create()
          Creates the java object this resource corresponds to.
 OCLConstructor getConstructor()
          Returns the constructor for this object
 Literal getHasClass()
          Returns the value of the hasClass property, which is the java type of this object
 Literal getJar()
          Gets the remote jar url.
 NodeIterator listJars()
          Return a list of remote jars associated with this object
 void removeJar(java.lang.String theJar)
          Removes the specified jar property
 void setConstructor(OCLConstructor theConstructor)
          Sets the constructor for this object
 void setHasClass(java.lang.Class theHasClass)
          Sets the hasClassProperty
 void setHasClass(java.lang.String theHasClass)
          Sets the hasClass property
 

Method Detail

getHasClass

public Literal getHasClass()
Returns the value of the hasClass property, which is the java type of this object

Returns:
Literal

setHasClass

public void setHasClass(java.lang.String theHasClass)
Sets the hasClass property

Parameters:
theHasClass - String the new hasClass value

setHasClass

public void setHasClass(java.lang.Class theHasClass)
Sets the hasClassProperty

Parameters:
theHasClass - Class the new hasClass value

getConstructor

public OCLConstructor getConstructor()
Returns the constructor for this object

Returns:
OCLConstructor

setConstructor

public void setConstructor(OCLConstructor theConstructor)
Sets the constructor for this object

Parameters:
theConstructor - OCLConstructor the new constructor

getJar

public Literal getJar()
Gets the remote jar url. If this property is specified, this value represents the remote location of the class file for this object

Returns:
Literal the jar url

addJar

public void addJar(java.lang.String theJar)
Adds a new remote jar url.

Parameters:
theJar - String the new jar url to add

listJars

public NodeIterator listJars()
Return a list of remote jars associated with this object

Returns:
ResIterator the list of remote jars

removeJar

public void removeJar(java.lang.String theJar)
Removes the specified jar property

Parameters:
theJar - String the jar value to remove

create

public java.lang.Object create()
                        throws java.lang.ClassNotFoundException,
                               java.lang.NoSuchMethodException,
                               java.lang.InstantiationException,
                               java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException
Creates the java object this resource corresponds to. Throws one of many exceptions if the data for this resource is not valid for creating an object of the specified type.

Returns:
Object the java object created by this resource
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException