Class EcoreRefPackage

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​javax.jmi.reflect.RefEnum> enums  
      private java.lang.String mName  
      • Fields inherited from class com.nomagic.uml2.ext.jmi.reflect.AbstractRefBaseObjectImpl

        mMetaObject, repository
    • Field Detail

      • enums

        private final java.util.Map<java.lang.String,​javax.jmi.reflect.RefEnum> enums
      • mName

        private final java.lang.String mName
    • Constructor Detail

      • EcoreRefPackage

        public EcoreRefPackage​(AbstractRepository repository,
                               java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
      • addEnum

        public void addEnum​(java.util.Map<java.lang.String,​javax.jmi.reflect.RefEnum> enumInfo)
      • refGetEnum

        public javax.jmi.reflect.RefEnum refGetEnum​(java.lang.String enumName,
                                                    java.lang.String literal)
        Description copied from class: AbstractRefPackage
        The refGetEnum operation returns the instance of an enumeration (i.e., an enumeration literal) whose value is described by the value of literalName . Note that the type of enumeration is defined by the meta object that owns the metaLiteral object. InvalidCallException is raised if the enumType parameter does not designate a valid enumeration. InvalidNameException is raised when the enumName does not denote a valid enum name. This refGetEnum returns the enumeration object representing the enumeration literal. specific analog: none. return type: RefEnum parameters: RefObject enumType (or String enumName ) String literalName exceptions: JmiException (TypeMismatchException, InvalidCallException, InvalidNameException, java.lang.NullPointerException)
        Specified by:
        refGetEnum in interface javax.jmi.reflect.RefPackage
        Overrides:
        refGetEnum in class AbstractRefPackage