/*
 * Copyright 2012 Shared Learning Collaborative, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.slc.sli.modeling.tools.selector;

/**
 * Command line utility to read an XMI File, and print out features (attributes,
 * associations) of each element type.
 *
 * @author wscott
 *
 */
public class SelectorDoc {

    public static void main(String[] args) {

    }

}

@@ -658,232 +658,952 @@
 r;%0A%0A
-/**%0A * Command line utility to read an XMI File, and print out features (attributes,%0A * associations) of each element type.%0A *%0A * @author wscott%0A *%0A */%0Apublic class SelectorDoc %7B%0A%0A    public static void main(String%5B%5D args) %7B
+import java.io.FileNotFoundException;%0A%0Aimport org.slc.sli.modeling.uml.Model;%0Aimport org.slc.sli.modeling.uml.index.DefaultModelIndex;%0Aimport org.slc.sli.modeling.uml.index.ModelIndex;%0Aimport org.slc.sli.modeling.xmi.reader.XmiReader;%0A%0A/**%0A * Command line utility to read an XMI File, and print out features (attributes,%0A * associations) of each element type.%0A *%0A * @author wscott%0A *%0A */%0Apublic class SelectorDoc %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        final Model model;%0A        final ModelIndex mi;%0A        try %7B%0A            model = XmiReader.readModel(args%5B0%5D);%0A        %7D catch (FileNotFoundException e) %7B%0A            return;%0A        %7D%0A%0A        if (model != null) %7B%0A            mi = new DefaultModelIndex(model);%0A        %7D else %7B%0A            return;%0A        %7D%0A%0A        System.out.println(%22=== ClassTypes ===%22);%0A        for(String classtype : mi.getClassTypes().keySet()) %7B%0A            System.out.println(classtype);%0A        %7D
 %0A%0A  

Read XMI file.