artefaktur
software engineer &        architecture

 
 
 
 

class Unit

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::reflect::Unit Class Reference

#include <Unit.h>

Inheritance diagram for acdk::lang::reflect::Unit:

acdk::lang::reflect::AccessibleObject acdk::lang::dmi::MetaObject acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Represents the Unit: a namespace with ACDK classes.


Public Member Functions

 Unit (const acdk::lang::dmi::UnitInfo *unitInfo)
 internal constructor

RClassArray getClasses ()
 returns all classes registered in this unit

RUnit getParent ()
 returns the parent of this unit If no parent returns Nil This method only regards already loaded packages

RUnitArray getChilds (bool recursive=false)
 return the childs (nested) units

REnumerationArray getEnumerations ()
 return all enumerations in this unit

virtual dmi::MetaInfogetMetaInfo ()
 implemented interface for MetaObject

virtual RString getName ()
 returns the ClassName for this object by default

virtual bool equals (IN(RObject) obj)
 Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

int compareTo (IN(RUnit) obj)
int compareTo (IN(RObject) obj)
 compares t objects Object::compareTo() UnsupportedOperationException

virtual int hashCode ()
virtual RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual RString toIndentifier ()
virtual RString toTypeString (int format=acdk::lang::dmi::TpFtFormatStandard)
 print the information


Static Public Member Functions

RUnit getUnit (IN(RString) unitname)
 return the unit with given name.

RUnitArray getUnits ()
 returns all registered Units


Private Attributes

const acdk::lang::dmi::UnitInfo_unitInfo

Constructor & Destructor Documentation

acdk::lang::reflect::Unit::Unit const acdk::lang::dmi::UnitInfo unitInfo  )  [inline]
 

internal constructor


Member Function Documentation

int acdk::lang::reflect::Unit::compareTo IN(RObject obj  )  [inline, virtual]
 

compares t objects Object::compareTo() UnsupportedOperationException

Returns:
0 if equal 1 if this object is greater, -1 if ohter
Exceptions:
UnsupportedOperationException 

Reimplemented from acdk::lang::Object.

int acdk::lang::reflect::Unit::compareTo IN(RUnit obj  )  [inline]
 

virtual bool acdk::lang::reflect::Unit::equals IN(RObject obj  )  [virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::lang::Object.

RUnitArray acdk::lang::reflect::Unit::getChilds bool  recursive = false  ) 
 

return the childs (nested) units

Parameters:
recursive if true all nested childs. Otherwise only direct childs. This method only regards already loaded packages

RClassArray acdk::lang::reflect::Unit::getClasses  ) 
 

returns all classes registered in this unit

REnumerationArray acdk::lang::reflect::Unit::getEnumerations  ) 
 

return all enumerations in this unit

virtual dmi::MetaInfo* acdk::lang::reflect::Unit::getMetaInfo  )  [inline, virtual]
 

implemented interface for MetaObject

Reimplemented from acdk::lang::dmi::MetaObject.

virtual RString acdk::lang::reflect::Unit::getName  )  [virtual]
 

returns the ClassName for this object by default

Reimplemented from acdk::lang::Object.

RUnit acdk::lang::reflect::Unit::getParent  ) 
 

returns the parent of this unit If no parent returns Nil This method only regards already loaded packages

RUnit acdk::lang::reflect::Unit::getUnit IN(RString unitname  )  [static]
 

return the unit with given name.

Parameters:
unitname name of unit in the form acdk::util::logging or acdk/util/logging
Returns:
Nil if given unit is not registered

RUnitArray acdk::lang::reflect::Unit::getUnits  )  [static]
 

returns all registered Units

virtual int acdk::lang::reflect::Unit::hashCode  )  [inline, virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::lang::Object.

virtual RString acdk::lang::reflect::Unit::toIndentifier  )  [virtual]
 

virtual RString acdk::lang::reflect::Unit::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.

virtual RString acdk::lang::reflect::Unit::toTypeString int  format = acdk::lang::dmi::TpFtFormatStandard  )  [inline, virtual]
 

print the information

Parameters:
format combination of acdk::lang::dmi::TypeNameFormat

Implements acdk::lang::dmi::MetaObject.


Member Data Documentation

const acdk::lang::dmi::UnitInfo* acdk::lang::reflect::Unit::_unitInfo [private]
 

 
Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer