intarsys runtime library

de.intarsys.tools.objectmodel
Class Class

java.lang.Object
  extended by de.intarsys.tools.objectmodel.Class
All Implemented Interfaces:
IClass

public class Class
extends Object
implements IClass

A "meta" class for any object. This is used to dynamically extend the objects features via the registration of additional methods (and maybe attributes some time).


Constructor Summary
Class(Class javaclass)
           
Class(Class javaclass, Object id)
           
Class(IClassSelector selector)
           
 
Method Summary
 IField[] getFields()
          All known IField instances of this.
 IMethod[] getMethods()
          All known IMethod instances of this.
 IClassSelector getSelector()
          The unique selector to this IClass.
 IField lookupField(String name)
          The single IField with the given name.
 IMethod lookupMethod(String name)
          The single IMethod with the given name.
 void registerField(IField property)
           
 void registerMethod(IMethod method)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Class

public Class(IClassSelector selector)

Class

public Class(Class javaclass)

Class

public Class(Class javaclass,
             Object id)
Method Detail

getFields

public IField[] getFields()
Description copied from interface: IClass
All known IField instances of this. If no fields are available, this method returns an empty array.

Specified by:
getFields in interface IClass
Returns:
All known IField instances of this.

getMethods

public IMethod[] getMethods()
Description copied from interface: IClass
All known IMethod instances of this. If no methods are available, this method returns an empty array.

Specified by:
getMethods in interface IClass
Returns:
All known IMethod instances of this.

getSelector

public IClassSelector getSelector()
Description copied from interface: IClass
The unique selector to this IClass.

Specified by:
getSelector in interface IClass
Returns:
The unique selector to this IClass.

lookupField

public IField lookupField(String name)
Description copied from interface: IClass
The single IField with the given name.

Specified by:
lookupField in interface IClass
Parameters:
name - The name of the IField to lookup.
Returns:
The single IField with the given name.

lookupMethod

public IMethod lookupMethod(String name)
Description copied from interface: IClass
The single IMethod with the given name.

Specified by:
lookupMethod in interface IClass
Parameters:
name - The name of the IMethod to lookup.
Returns:
The single IMethod with the given name.

registerField

public void registerField(IField property)

registerMethod

public void registerMethod(IMethod method)

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.