Package javax.jmi.model

Examples of javax.jmi.model.MofPackage


        String[] uris,
        String[] moduleSearchPath)
    {
        try
        {
            final MofPackage metaModel = this.loadMetaModel(this.getMetamodelUri());
            this.model = this.loadModel(
                    uris,
                    moduleSearchPath,
                    metaModel);
        }
View Full Code Here


        {
            throw new IllegalArgumentException("'streams' and 'uris' must be of the same length");
        }
        try
        {
            final MofPackage metaModel = this.loadMetaModel(this.getMetamodelUri());
            this.model = this.loadModel(
                    streams,
                    uris,
                    moduleSearchPath,
                    metaModel);
View Full Code Here

        if (metaModelExtent == null)
        {
            metaModelExtent = (ModelPackage)repository.createExtent(metamodelUri.toExternalForm());
        }

        MofPackage metaModelPackage = findPackage(
                this.metamodelPackage,
                metaModelExtent);
        if (metaModelPackage == null)
        {
            final XmiReader xmiReader = this.getXMIReaderFactory().createXMIReader();
View Full Code Here

     */
    private MofPackage findPackage(
        final String packageName,
        final ModelPackage metaModel)
    {
        MofPackage mofPackage = null;
        for (final Iterator iterator = metaModel.getMofPackage().refAllOfClass().iterator(); iterator.hasNext();)
        {
            final javax.jmi.model.ModelElement element = (javax.jmi.model.ModelElement)iterator.next();
            if (element.getName().equals(packageName))
            {
View Full Code Here

     // Create mof instance
     metamodelContainer = (ModelPackage)getRep().createExtent( mmURI );
     }

      // Get the metamodel main entry package
    MofPackage metamodel = getMetamodelMainPackage( metamodelContainer, metaModelMainExtentName );
    if( metamodel == null )
      { // load the mm in the container
      readNativeModel( mmFilename, metamodelContainer );
        // Get the main entry
      metamodel = getMetamodelMainPackage( metamodelContainer, metaModelMainExtentName );
View Full Code Here

     * @return
     */
    protected MofPackage getMetamodelMainPackage( ModelPackage metamodelContainer, String mmMainExtentName)
    {
      for (Iterator it = metamodelContainer.getMofPackage().refAllOfClass().iterator(); it.hasNext();) {
          MofPackage pkg = (MofPackage) it.next();
          if (pkg.getContainer() == null && mmMainExtentName.equals(pkg.getName())) {
              return pkg;
          }
      }
      return null;
    }
View Full Code Here

TOP

Related Classes of javax.jmi.model.MofPackage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.