NameSpace


Overview

A name space is a container of named elements. A name space defines two operations 'getElement/1' and 'hasElement/1' that are used to get an element by name and check for an element by name. Typically a name space will contain different categories of elements in which case the name space will place the contained elements in its contents table and in a type specific collection. For example, a class is a container for operations, attributes and constraints. Each of these elements are placed in the contents table for the class and in a slot containing a collection with the names 'operations', 'attributes'; and 'constraints' respectively. The special syntax '::' is used to invoke the 'getElement/1' operation on a name space.



Parents IndexedContainer ,NamedElement ,DocumentedElement ,Container ,Contained ,Object ,Element


Constructors



Attributes
bindingsSet(Bind)No Documentation Specified
importsSeq(NameSpace)No Documentation Specified
From IndexedContainer: contents. From NamedElement: name. From DocumentedElement: documentation. From Contained: owner.



Operations
add(element:Element):ElementNo Documentation Specified
addBinding(binding:Bind):ElementNo Documentation Specified
allHTMLEntries():Seq(NamedElement)No Documentation Specified
allHTMLPackages():Seq(NamedElement)No Documentation Specified
define(element:Element,nameSpace:Element,isForward:Element):ElementNo Documentation Specified
getContents(name:Element):ElementNo Documentation Specified
getElement(name:String):ContainedNo Documentation Specified
getInstantiableClasses():ElementNo Documentation Specified
hasBinding(name:String):BooleanNo Documentation Specified
hasElement(name:String):BooleanNo Documentation Specified
init(args:Element):ElementNo Documentation Specified
init():ElementNo Documentation Specified
initBindings():ElementNo Documentation Specified
lift():ElementNo Documentation Specified
nameChanged(namedElement:Element,newName:Element,oldName:Element):ElementNo Documentation Specified
names():Set(String)No Documentation Specified
newName(root:String):StringNo Documentation Specified
putElement(name:String,value:Element):ElementNo Documentation Specified
redefine(newElement:Element):ElementNo Documentation Specified
remove(element:Element):ElementNo Documentation Specified
removeBinding(name:String):ElementNo Documentation Specified
resolveNameClash(name:Element,collection:Element):ElementNo Documentation Specified
toHTML(root:String):ElementNo Documentation Specified
toHTMLDoc(fout:OutputChannel):ElementNo Documentation Specified
writeEcore(path:String):ElementNo Documentation Specified
From IndexedContainer: removeContentDaemon, indices, initContents, index, init, contents, contentDaemons, addContentDaemon, add, add, remove. From NamedElement: href, toString, setName, repopulate, pathSeq, path, name, getNamedElement. From DocumentedElement: setDoc, doc, ensureDoc. From Container: untraceAll, traceAll, removeContentDaemon, remove, initContents, init, includes, deleteRecursive, contentsThat, contentsOf, contents, contentDaemons, checkConstraints, checkConstraints, allContentsThat, allContentsOf, allContents, addContentDaemon, add. From Contained: owner, deleteRecursive, allOwners, addTo, setOwner, removeFromOwner. From Object: slotMissing, slotMissing, setProperty, setHotLoad, setDaemonsActive, setDaemons, set, renameSlot, removeStructuralFeature, removeDaemonsWithTarget, removeDaemonsWithId, removeDaemonNamed, removeDaemon, machineInit, initSlots, init, hotLoaded, hotLoad, hasSlot, hasProperty, getProperty, get, hasStructuralFeature, getStructuralFeatureNames, hasDaemonWithTarget, hasDaemonWithIdAndTarget, hasDaemonWithId, hasDaemonNamed, fire, destroyDaemon, daemonWithIdAndTarget, daemonWithId, daemonNamed, daemonsActive, daemons, allDaemonsWithTarget, allDaemonsWithId, compositeValues, allCompositeValuesAndSelf, allCompositeValues, addStructuralFeature, addPersistentDaemon, addMultiDaemon, addDaemon. From Element: pprint, pprint, pprint, writeXMLFile, writeXMLFile, writeXML, lift, toSnapshot, toSnapshot, allHTMLEntries, allHTMLPackages, toHTML, writeHTML, writeHTML, writeHTMLAllEntries, writeHTMLAllPackages, writeHTMLIndex, writeHTMLOverview, yield, toString, systemId, setOf, send, save2, save, removeDaemon, removeDaemon, println, print, oclIsKindOf, oclIsTypeOf, noOperationFound, isTypeOf, isReallyKindOf, init, init, of, isKindOf, addTo, checkConstraints, copy, deleteRecursive, die, edit, equals, error, ferror, hashCode.