Android Open Source - nosey Inspector






From Project

Back to project page nosey.

License

The source code is released under:

Apache License

If you think the Android project nosey listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.btellez.noseyexplorer;
/*from   w  w  w .  j a  v a2s . c o  m*/
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

public interface Inspector {
    public void inspect(Nosey nosey);

    public static class ModelNameInspector implements Inspector {

        private Nosey nosey;
        private List<String> modelNames;

        @Override
        public void inspect(Nosey nosey) {
            this.nosey = nosey;
        }

        public List<String> getModelNames() {
            if (modelNames == null) {
                modelNames = new ArrayList<String>();
                if (nosey != null) {
                    modelNames.addAll(nosey.objectTypes.keySet());
                    Collections.sort(modelNames);
                }
            }
            return modelNames;
        }
    }

    public static class ModelMapInspector implements Inspector {
        private Nosey nosey;
        private Map<String, Class> modelMap;

        @Override
        public void inspect(Nosey nosey) {
            this.nosey = nosey;
        }
        
        public Map<String, Class> getModelMap() {
            return nosey.objectTypes;
        }
    }
}




Java Source Code List

com.btellez.nosey.ApplicationTest.java
com.btellez.nosey.MainActivity.java
com.btellez.nosey.SomeModelA.java
com.btellez.noseyexplorer.ApplicationTest.java
com.btellez.noseyexplorer.DisplayModelActivity.java
com.btellez.noseyexplorer.Inspector.java
com.btellez.noseyexplorer.ModelSelectionActivity.java
com.btellez.noseyexplorer.Nosey.java