eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SystemOrganizer':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SystemOrganizer


Inheritance:

   Object
   |
   +--SystemOrganizer

Package:
stx:libbasic3
Category:
Kernel-Support
Version:
rev: 1.17 date: 2019/03/03 22:00:03
user: cg
file: SystemOrganizer.st directory: libbasic3
module: stx stc-classLibrary: libbasic3

Description:


In ST80, there is a systemOrganization, which groups classes
to categories.
All of this here is mimicri - ST/X keeps the category in the class.
This class simulates the ST80 behavior.


Class protocol:

instance creation
o  for: aNameSpaceOrNil
create & return a new instance of myself, to organize aNameSpace.
All of this here is mimicri - ST/X keeps the category in the class.


Instance protocol:

accessing
o  addCategory: aCategory before: someOtherCategory

o  categories
return a collection of my classes class-categories.
If my nameSpace is nil, all classes' categories are included;
otherwise, only the categories of that particular namespace.

usage example(s):

     (SystemOrganizer for:nil) categories 
     (SystemOrganizer for:Smalltalk) categories 
     (SystemOrganizer for:Demos) categories 

o  categoryOfElement: aClassName
return a classes category;
the argument is the classes name

o  classify: aClassName under: newCategory
change a classes category;
the argument is the classes name

o  environment

o  listAtCategoryNamed: aCategory
return a collection of classes in aCategory.

usage example(s):

     (SystemOrganizer for:nil) listAtCategoryNamed:'Collections-Abstract' 
     (SystemOrganizer for:Smalltalk) listAtCategoryNamed:'Collections-Abstract' 
     (SystemOrganizer for:Demos) listAtCategoryNamed:'Collections-Abstract' 

change & update
o  update: something with: anArgument from: changedObject
flush cached categories ...

private accessing
o  nameSpace: aNameSpace
set the nameSpace - nil is allowed and stands for: any



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 23:24:03 GMT