public abstract class AbstractRefPackage
extends com.nomagic.uml2.ext.jmi.reflect.AbstractRefBaseObjectImpl
implements javax.jmi.reflect.RefPackage
Constructor and Description |
---|
AbstractRefPackage(AbstractRepository repository) |
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(java.lang.String name,
javax.jmi.reflect.RefAssociation assoc) |
void |
addClass(java.lang.String name,
javax.jmi.reflect.RefClass clazz) |
void |
addPackage(java.lang.String name,
javax.jmi.reflect.RefBaseObject pack) |
java.util.Map |
getMetaObjects() |
void |
internalError(java.lang.String string,
javax.jmi.reflect.InvalidCallException ex) |
java.util.Collection |
refAllAssociations()
The refAllAssociation operation returns all associations directly contained by this package.
|
java.util.Collection |
refAllClasses()
The refAllClasses operation returns all class proxies directly contained by this package.
|
java.util.Collection |
refAllPackages()
Returns a (possible empty) collection of RefPackages directly contained
by this package.
|
javax.jmi.reflect.RefAssociation |
refAssociation(javax.jmi.reflect.RefObject association) |
javax.jmi.reflect.RefAssociation |
refAssociation(java.lang.String associationName)
The association (or associationName ) parameter should designate the (M2)
association whose association object is to be returned.
|
javax.jmi.reflect.RefClass |
refClass(javax.jmi.reflect.RefObject type) |
javax.jmi.reflect.RefClass |
refClass(java.lang.String className)
The type (or className ) parameter should designate the class whose class
proxy object is to be returned.
|
javax.jmi.reflect.RefStruct |
refCreateStruct(javax.jmi.reflect.RefObject structType,
java.util.List name) |
javax.jmi.reflect.RefStruct |
refCreateStruct(java.lang.String structName,
java.util.List args)
The refCreateStruct operation creates an instance of a struct data type
defined by the metaobject structType (or structName ) whose attribute
values are specified by the ordered collection args .
|
void |
refDelete()
The "refDelete" operation destroys this package, including the objects it contains directly or transitively.
|
javax.jmi.reflect.RefEnum |
refGetEnum(javax.jmi.reflect.RefObject enumType,
java.lang.String args) |
javax.jmi.reflect.RefEnum |
refGetEnum(java.lang.String enumName,
java.lang.String args)
The refGetEnum operation returns the instance of an enumeration (i.e., an
enumeration literal) whose value is described by the value of literalName .
|
javax.jmi.reflect.RefPackage |
refPackage(javax.jmi.reflect.RefObject nestedPackage) |
javax.jmi.reflect.RefPackage |
refPackage(java.lang.String nestedPackageName)
The "nestedPackage" (or nestedPackageName ) parameter should designate
the package whose package object is to be returned.
|
void |
removeClass(com.nomagic.uml2.ext.jmi.reflect.AbstractRefClass clazz) |
void |
removePackage(javax.jmi.reflect.RefBaseObject pack) |
getRepository, mapClear, mapPut, mapPutAll, mapRemove, mof_getRepository, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints, setMofID, setOwner, setRefMetaObject, setRepository
public AbstractRefPackage(AbstractRepository repository)
repository
- public void addAssociation(java.lang.String name, javax.jmi.reflect.RefAssociation assoc)
name
- assoc
- public java.util.Collection refAllAssociations()
refAllAssociations
in interface javax.jmi.reflect.RefPackage
public java.util.Collection refAllClasses()
refAllClasses
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefAssociation refAssociation(javax.jmi.reflect.RefObject association)
refAssociation
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefAssociation refAssociation(java.lang.String associationName)
refAssociation
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefClass refClass(javax.jmi.reflect.RefObject type)
refClass
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefClass refClass(java.lang.String className)
refClass
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefStruct refCreateStruct(javax.jmi.reflect.RefObject structType, java.util.List name)
refCreateStruct
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefStruct refCreateStruct(java.lang.String structName, java.util.List args)
refCreateStruct
in interface javax.jmi.reflect.RefPackage
public void refDelete()
refDelete
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefEnum refGetEnum(javax.jmi.reflect.RefObject enumType, java.lang.String args)
refGetEnum
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefEnum refGetEnum(java.lang.String enumName, java.lang.String args)
refGetEnum
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefPackage refPackage(javax.jmi.reflect.RefObject nestedPackage)
refPackage
in interface javax.jmi.reflect.RefPackage
public javax.jmi.reflect.RefPackage refPackage(java.lang.String nestedPackageName)
refPackage
in interface javax.jmi.reflect.RefPackage
public void internalError(java.lang.String string, javax.jmi.reflect.InvalidCallException ex)
string
- ex
- public java.util.Map getMetaObjects()
public void addClass(java.lang.String name, javax.jmi.reflect.RefClass clazz)
name
- clazz
- public void removeClass(com.nomagic.uml2.ext.jmi.reflect.AbstractRefClass clazz)
public void addPackage(java.lang.String name, javax.jmi.reflect.RefBaseObject pack)
string
- basicBehaviorsPackage2
- public void removePackage(javax.jmi.reflect.RefBaseObject pack)
public java.util.Collection refAllPackages()
refAllPackages
in interface javax.jmi.reflect.RefPackage