7 Replies - 1218 Views - Last Post: 01 April 2014 - 06:18 AM Rate Topic: -----

#1 ezionice  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 31-March 14

Parsing xmi using java code

Posted 31 March 2014 - 07:58 AM

Hi at all,i am a new member and i wanna make compliments to all for this forum.
I have a problem with an application in java.
I Should develop a program that performs parsing xmi, and that print to video classes with their attributes. I was able to parse and thought I'd put the names in a list of the classes and attributes in another. Unfortunately I do not know how to be able to print the classes and their attributes!
This is my code:
package mood.xmi;
 
import java.io.File;

import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;

import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
 



import java.lang.String;
 
public class forum {
 
    final static String ATTRIBUTES = "UML:Attribute";
    final static String METHODS = "UML:Operation";
    final static String CLASSES = "UML:Class"; 
    final static String COUPLINGS = "UML:Associationend";
    final static String CLASS_INHERITANCES = "UML:GeneralizableElement.generalization";
    final static String FILE_ADDRESS = "FILE.xmi";
 
    public static void main(String args[]) {
    	NodeList listClass;
    	NodeList listAttributes;
        try {
 
            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
            Document doc = docBuilder.parse(new File(FILE_ADDRESS));
 
         
            doc.getDocumentElement().normalize();
        
               listClass = doc.getElementsByTagName(CLASSES);
           
            int totalClass = listClass.getLength();
            System.out.println("Total Class : " + totalClass);
         
           for (int i = 0; i < listClass.getLength(); i++) {
        	   
               Element link = (Element) listClass.item(i);

               System.out.println("class name = "+ link.getAttribute("name"));

           }
       
            
            listAttributes = doc.getElementsByTagName(ATTRIBUTES);
            int totalAttributes = listAttributes.getLength();
            System.out.println("Total Attribute : " + totalAttributes);
            
 
            NodeList linksAtributesHiding = doc.getElementsByTagName(ATTRIBUTES);
            for (int i = 0; i < linksAtributesHiding.getLength(); i++) {
 
                Element link = (Element) linksAtributesHiding.item(i);
 
                System.out.println("attribute  = " + " "+ link.getAttribute("name"));
 
            }
            
 
        } catch (SAXParseException err) {
            System.out.println("** Parsing error" + ", line "
                    + err.getLineNumber() + ", uri " + err.getSystemId());
            System.out.println(" " + err.getMessage());
 
        } catch (SAXException e) {
            Exception x = e.getException();
            ((x == null) ? e : x).printStackTrace();
 
        } catch (Throwable t) {
            t.printStackTrace();
        }
        
        
    }
}


Can someone help me??Thank u so much at all

Is This A Good Question/Topic? 0
  • +

Replies To: Parsing xmi using java code

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10803
  • View blog
  • Posts: 40,262
  • Joined: 27-December 08

Re: Parsing xmi using java code

Posted 31 March 2014 - 09:00 AM

Welcome to Dream.in.Code!

I will move your thread to the Java forum for better visibility. Please remember to post your threads in the appropriate help forums in the future. :)
Was This Post Helpful? 0
  • +
  • -

#3 ezionice  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 31-March 14

Re: Parsing xmi using java code

Posted 31 March 2014 - 09:03 AM

ok i am sorry for this!!!Can u remove this post if u want!Thank u so much!
Was This Post Helpful? 0
  • +
  • -

#4 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10803
  • View blog
  • Posts: 40,262
  • Joined: 27-December 08

Re: Parsing xmi using java code

Posted 31 March 2014 - 09:04 AM

I've already moved the thread. There is no reason to delete your post.
Was This Post Helpful? 1
  • +
  • -

#5 ezionice  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 31-March 14

Re: Parsing xmi using java code

Posted 31 March 2014 - 09:05 AM

ok thank u!i wait for the answers :D
Was This Post Helpful? 0
  • +
  • -

#6 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2831
  • View blog
  • Posts: 11,990
  • Joined: 20-September 08

Re: Parsing xmi using java code

Posted 31 March 2014 - 09:27 AM

Quote

 final static String FILE_ADDRESS = "FILE.xmi";
Why did you not attach this file?
Was This Post Helpful? 0
  • +
  • -

#7 ezionice  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 31-March 14

Re: Parsing xmi using java code

Posted 31 March 2014 - 10:05 AM

Sorry, here is the file, I forgot to include it.

<?xml version = "1.0" encoding = "UTF-8"?>
<XMI xmi.version = "1.1" xmlns:UML="href://org.omg/UML/1.3" timestamp = "Mon Mar 31 18:59:50 2014">
<XMI.header>
  <XMI.documentation>
    <XMI.owner></XMI.owner>
    <XMI.contact></XMI.contact>
    <XMI.exporter>StarUML.XMI-Addin</XMI.exporter>
    <XMI.exporterVersion>1.0</XMI.exporterVersion>
    <XMI.notice></XMI.notice>
  </XMI.documentation>
  <XMI.metamodel xmi.name = "UML" xmi.version = "1.3"/>
 </XMI.header>
<XMI.content>
<UML:Model xmi.id="UMLProject.1">
  <UML:Namespace.ownedElement>
    <UML:Model xmi.id="UMLModel.2" name="Use Case Model" visibility="public" isSpecification="false" namespace="UMLProject.1" isRoot="false" isLeaf="false" isAbstract="false">
      <UML:Namespace.ownedElement>
        <UML:Stereotype xmi.id="X.124" name="useCaseModel" extendedElement="UMLModel.2"/>
      </UML:Namespace.ownedElement>
    </UML:Model>
    <UML:Model xmi.id="UMLModel.3" name="Analysis Model" visibility="public" isSpecification="false" namespace="UMLProject.1" isRoot="false" isLeaf="false" isAbstract="false">
      <UML:Namespace.ownedElement>
        <UML:Stereotype xmi.id="X.125" name="analysisModel" extendedElement="UMLModel.3"/>
      </UML:Namespace.ownedElement>
    </UML:Model>
    <UML:Model xmi.id="UMLModel.4" name="Design Model" visibility="public" isSpecification="false" namespace="UMLProject.1" isRoot="false" isLeaf="false" isAbstract="false">
      <UML:Namespace.ownedElement>
        <UML:Class xmi.id="UMLClass.5" name="CurrentStateAndView" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.6" name="State" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.128" owner="UMLClass.5"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.7" name="First Table" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.16 UMLAssociationend.19 UMLAssociationend.20 UMLAssociationend.22" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.8" name="Function" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.7"/>
            <UML:Attribute xmi.id="UMLAttribute.9" name="Complexit" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.7"/>
            <UML:Attribute xmi.id="UMLAttribute.10" name="DT" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.7"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.11" name="Project" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.17 UMLAssociationend.23 UMLAssociationend.57 UMLAssociationend.60 UMLAssociationend.69 UMLAssociationend.72 UMLAssociationend.75" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.12" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.11"/>
            <UML:Attribute xmi.id="UMLAttribute.13" name="Author" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.11"/>
            <UML:Attribute xmi.id="UMLAttribute.14" name="Year" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.11"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Association xmi.id="UMLAssociation.15" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.16" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.15" type="UMLClass.7"/>
            <UML:Associationend xmi.id="UMLAssociationend.17" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.15" type="UMLClass.11"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.18" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.19" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.18" type="UMLClass.7"/>
            <UML:Associationend xmi.id="UMLAssociationend.20" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.18" type="UMLClass.7"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.21" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.22" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.21" type="UMLClass.7"/>
            <UML:Associationend xmi.id="UMLAssociationend.23" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.21" type="UMLClass.11"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Class xmi.id="UMLClass.24" name="COSMIC_BFC_Table" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.56" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.25" name="MovementType" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.24">
              <UML:StructuralFeature.multiplicity>
                <UML:Multiplicity xmi.id="X.135">
                  <UML:Multiplicity.range>
                    <UML:MultiplicityRange xmi.id="X.136" lower="4" upper="4" multiplicity="X.135"/>
                  </UML:Multiplicity.range>
                </UML:Multiplicity>
              </UML:StructuralFeature.multiplicity>
            </UML:Attribute>
            <UML:Attribute xmi.id="UMLAttribute.26" name="MovementNumber" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.24">
              <UML:StructuralFeature.multiplicity>
                <UML:Multiplicity xmi.id="X.138">
                  <UML:Multiplicity.range>
                    <UML:MultiplicityRange xmi.id="X.139" lower="4" upper="4" multiplicity="X.138"/>
                  </UML:Multiplicity.range>
                </UML:Multiplicity>
              </UML:StructuralFeature.multiplicity>
            </UML:Attribute>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.27" name="FunctionalProcess" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.59 UMLAssociationend.66" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.28" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.27"/>
            <UML:Attribute xmi.id="UMLAttribute.29" name="Description" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.27"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.30" name="DataMovement" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.62 UMLAssociationend.63 UMLAssociationend.65 UMLAssociationend.89" isActive="false"/>
        <UML:Class xmi.id="UMLClass.31" name="DataGroup" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.68 UMLAssociationend.90 UMLAssociationend.93" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.32" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.31"/>
            <UML:Attribute xmi.id="UMLAttribute.33" name="Description" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.31"/>
            <UML:Attribute xmi.id="UMLAttribute.34" name="Transient" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.146" owner="UMLClass.31"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.35" name="DataAttribute" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.92" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.36" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.35"/>
            <UML:Attribute xmi.id="UMLAttribute.37" name="Description" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.35"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.38" name="TransactionFunction" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.74 UMLAssociationend.78 UMLAssociationend.81" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.39" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.38"/>
            <UML:Attribute xmi.id="UMLAttribute.40" name="Description" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.38"/>
            <UML:Attribute xmi.id="UMLAttribute.41" name="TransactionFunctionType" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.38"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.42" name="LogicDataFile" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.71 UMLAssociationend.84 UMLAssociationend.96" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.43" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.42"/>
            <UML:Attribute xmi.id="UMLAttribute.44" name="Description" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.42"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.45" name="FTR" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.80 UMLAssociationend.95" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.46" name="Uploaded" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.146" owner="UMLClass.45"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.47" name="RET" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.83 UMLAssociationend.87" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.48" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.47"/>
            <UML:Attribute xmi.id="UMLAttribute.49" name="Description" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.47"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.50" name="DET" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.86 UMLAssociationend.99" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.51" name="Name" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.50"/>
            <UML:Attribute xmi.id="UMLAttribute.52" name="Description" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.50"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.53" name="BoundaryCrossingDET" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationend.77 UMLAssociationend.98" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.54" name="Direction" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.53"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Association xmi.id="UMLAssociation.55" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.56" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.55" type="UMLClass.24"/>
            <UML:Associationend xmi.id="UMLAssociationend.57" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.55" type="UMLClass.11"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.58" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.59" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.58" type="UMLClass.27"/>
            <UML:Associationend xmi.id="UMLAssociationend.60" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.58" type="UMLClass.11"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.61" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.62" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.61" type="UMLClass.30"/>
            <UML:Associationend xmi.id="UMLAssociationend.63" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.61" type="UMLClass.30"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.64" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.65" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.64" type="UMLClass.30"/>
            <UML:Associationend xmi.id="UMLAssociationend.66" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.64" type="UMLClass.27"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.67" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.68" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.67" type="UMLClass.31"/>
            <UML:Associationend xmi.id="UMLAssociationend.69" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.67" type="UMLClass.11"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.70" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.71" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.70" type="UMLClass.42"/>
            <UML:Associationend xmi.id="UMLAssociationend.72" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.70" type="UMLClass.11"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.73" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.74" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.73" type="UMLClass.38"/>
            <UML:Associationend xmi.id="UMLAssociationend.75" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.73" type="UMLClass.11"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.76" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.77" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.76" type="UMLClass.53"/>
            <UML:Associationend xmi.id="UMLAssociationend.78" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.76" type="UMLClass.38"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.79" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.80" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.79" type="UMLClass.45"/>
            <UML:Associationend xmi.id="UMLAssociationend.81" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.79" type="UMLClass.38"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.82" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.83" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.82" type="UMLClass.47"/>
            <UML:Associationend xmi.id="UMLAssociationend.84" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.82" type="UMLClass.42"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.85" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.86" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.85" type="UMLClass.50"/>
            <UML:Associationend xmi.id="UMLAssociationend.87" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.85" type="UMLClass.47"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.88" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.89" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.88" type="UMLClass.30"/>
            <UML:Associationend xmi.id="UMLAssociationend.90" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.88" type="UMLClass.31"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.91" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.92" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.91" type="UMLClass.35"/>
            <UML:Associationend xmi.id="UMLAssociationend.93" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="aggregate" targetScope="instance" changeability="changeable" association="UMLAssociation.91" type="UMLClass.31"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.94" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.95" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.94" type="UMLClass.45"/>
            <UML:Associationend xmi.id="UMLAssociationend.96" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.94" type="UMLClass.42"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Association xmi.id="UMLAssociation.97" name="" visibility="public" isSpecification="false" namespace="UMLModel.4">
          <UML:Association.connection>
            <UML:Associationend xmi.id="UMLAssociationend.98" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.97" type="UMLClass.53"/>
            <UML:Associationend xmi.id="UMLAssociationend.99" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.97" type="UMLClass.50"/>
          </UML:Association.connection>
        </UML:Association>
        <UML:Class xmi.id="UMLClass.100" name="" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" isActive="false"/>
        <UML:Class xmi.id="UMLClass.101" name="DataComplexityTable" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.102" name="RET" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.101"/>
            <UML:Attribute xmi.id="UMLAttribute.103" name="DET" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.101"/>
            <UML:Attribute xmi.id="UMLAttribute.104" name="Complexity" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.101"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLClass.105" name="TransactionComplexityTable" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false" isActive="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLAttribute.106" name="FTR" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.105"/>
            <UML:Attribute xmi.id="UMLAttribute.107" name="DET" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.105"/>
            <UML:Attribute xmi.id="UMLAttribute.108" name="Complexity" visibility="public" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="" owner="UMLClass.105"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLEnumeration.109" name="ComplexityScale" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.110" name="Low" visibility="public" isSpecification="false" owner="UMLEnumeration.109"/>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.111" name="Medium" visibility="public" isSpecification="false" owner="UMLEnumeration.109"/>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.112" name="High" visibility="public" isSpecification="false" owner="UMLEnumeration.109"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLEnumeration.113" name="DETBoundaryCrossingDirection" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.114" name="Inbound" visibility="public" isSpecification="false" owner="UMLEnumeration.113"/>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.115" name="Outbound" visibility="public" isSpecification="false" owner="UMLEnumeration.113"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Class xmi.id="UMLEnumeration.116" name="StateType" visibility="public" isSpecification="false" namespace="UMLModel.4" isRoot="false" isLeaf="false" isAbstract="false">
          <UML:Classifier.feature>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.117" name="ProjectData" visibility="public" isSpecification="false" owner="UMLEnumeration.116"/>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.118" name="FPAdata" visibility="public" isSpecification="false" owner="UMLEnumeration.116"/>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.119" name="FPAsize" visibility="public" isSpecification="false" owner="UMLEnumeration.116"/>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.120" name="COSMICdata" visibility="public" isSpecification="false" owner="UMLEnumeration.116"/>
            <UML:Attribute xmi.id="UMLEnumerationLiteral.121" name="COSMICsize" visibility="public" isSpecification="false" owner="UMLEnumeration.116"/>
          </UML:Classifier.feature>
        </UML:Class>
        <UML:Stereotype xmi.id="X.126" name="designModel" extendedElement="UMLModel.4"/>
        <UML:Stereotype xmi.id="X.166" name="enumeration" extendedElement="UMLEnumeration.109 UMLEnumeration.113 UMLEnumeration.116"/>
      </UML:Namespace.ownedElement>
    </UML:Model>
    <UML:Model xmi.id="UMLModel.122" name="Implementation Model" visibility="public" isSpecification="false" namespace="UMLProject.1" isRoot="false" isLeaf="false" isAbstract="false">
      <UML:Namespace.ownedElement>
        <UML:Stereotype xmi.id="X.167" name="implementationModel" extendedElement="UMLModel.122"/>
      </UML:Namespace.ownedElement>
    </UML:Model>
    <UML:Model xmi.id="UMLModel.123" name="Deployment Model" visibility="public" isSpecification="false" namespace="UMLProject.1" isRoot="false" isLeaf="false" isAbstract="false">
      <UML:Namespace.ownedElement>
        <UML:Stereotype xmi.id="X.168" name="deploymentModel" extendedElement="UMLModel.123"/>
      </UML:Namespace.ownedElement>
    </UML:Model>
    <UML:DataType xmi.id="X.128" name="StateType" visibility="public" isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false"/>
    <UML:DataType xmi.id="X.146" name="Boolean" visibility="public" isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false"/>
  </UML:Namespace.ownedElement>
</UML:Model>
<UML:TaggedValue xmi.id="X.127" tag="ordering" value="unordered" modelElement="UMLAttribute.6"/>
<UML:TaggedValue xmi.id="X.129" tag="ordering" value="unordered" modelElement="UMLAttribute.8"/>
<UML:TaggedValue xmi.id="X.130" tag="ordering" value="unordered" modelElement="UMLAttribute.9"/>
<UML:TaggedValue xmi.id="X.131" tag="ordering" value="unordered" modelElement="UMLAttribute.10"/>
<UML:TaggedValue xmi.id="X.132" tag="ordering" value="unordered" modelElement="UMLAttribute.12"/>
<UML:TaggedValue xmi.id="X.133" tag="ordering" value="unordered" modelElement="UMLAttribute.13"/>
<UML:TaggedValue xmi.id="X.134" tag="ordering" value="unordered" modelElement="UMLAttribute.14"/>
<UML:TaggedValue xmi.id="X.137" tag="ordering" value="unordered" modelElement="UMLAttribute.25"/>
<UML:TaggedValue xmi.id="X.140" tag="ordering" value="unordered" modelElement="UMLAttribute.26"/>
<UML:TaggedValue xmi.id="X.141" tag="ordering" value="unordered" modelElement="UMLAttribute.28"/>
<UML:TaggedValue xmi.id="X.142" tag="ordering" value="unordered" modelElement="UMLAttribute.29"/>
<UML:TaggedValue xmi.id="X.143" tag="ordering" value="unordered" modelElement="UMLAttribute.32"/>
<UML:TaggedValue xmi.id="X.144" tag="ordering" value="unordered" modelElement="UMLAttribute.33"/>
<UML:TaggedValue xmi.id="X.145" tag="ordering" value="unordered" modelElement="UMLAttribute.34"/>
<UML:TaggedValue xmi.id="X.147" tag="ordering" value="unordered" modelElement="UMLAttribute.36"/>
<UML:TaggedValue xmi.id="X.148" tag="ordering" value="unordered" modelElement="UMLAttribute.37"/>
<UML:TaggedValue xmi.id="X.149" tag="ordering" value="unordered" modelElement="UMLAttribute.39"/>
<UML:TaggedValue xmi.id="X.150" tag="ordering" value="unordered" modelElement="UMLAttribute.40"/>
<UML:TaggedValue xmi.id="X.151" tag="ordering" value="unordered" modelElement="UMLAttribute.41"/>
<UML:TaggedValue xmi.id="X.152" tag="ordering" value="unordered" modelElement="UMLAttribute.43"/>
<UML:TaggedValue xmi.id="X.153" tag="ordering" value="unordered" modelElement="UMLAttribute.44"/>
<UML:TaggedValue xmi.id="X.154" tag="ordering" value="unordered" modelElement="UMLAttribute.46"/>
<UML:TaggedValue xmi.id="X.155" tag="ordering" value="unordered" modelElement="UMLAttribute.48"/>
<UML:TaggedValue xmi.id="X.156" tag="ordering" value="unordered" modelElement="UMLAttribute.49"/>
<UML:TaggedValue xmi.id="X.157" tag="ordering" value="unordered" modelElement="UMLAttribute.51"/>
<UML:TaggedValue xmi.id="X.158" tag="ordering" value="unordered" modelElement="UMLAttribute.52"/>
<UML:TaggedValue xmi.id="X.159" tag="ordering" value="unordered" modelElement="UMLAttribute.54"/>
<UML:TaggedValue xmi.id="X.160" tag="ordering" value="unordered" modelElement="UMLAttribute.102"/>
<UML:TaggedValue xmi.id="X.161" tag="ordering" value="unordered" modelElement="UMLAttribute.103"/>
<UML:TaggedValue xmi.id="X.162" tag="ordering" value="unordered" modelElement="UMLAttribute.104"/>
<UML:TaggedValue xmi.id="X.163" tag="ordering" value="unordered" modelElement="UMLAttribute.106"/>
<UML:TaggedValue xmi.id="X.164" tag="ordering" value="unordered" modelElement="UMLAttribute.107"/>
<UML:TaggedValue xmi.id="X.165" tag="ordering" value="unordered" modelElement="UMLAttribute.108"/>
</XMI.content>
</XMI>




Was This Post Helpful? 0
  • +
  • -

#8 ezionice  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 31-March 14

Re: Parsing xmi using java code

Posted 01 April 2014 - 06:18 AM

Someone can help me?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1