001/**
002 * Copyright 2013 John Ericksen
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *    http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.androidtransfuse.model.manifest;
017
018import javax.xml.bind.annotation.XmlAttribute;
019
020
021/**
022 * attributes:
023 * android:functionalTest=["true" | "false"]
024 * android:handleProfiling=["true" | "false"]
025 * android:icon="drawable resource"
026 * android:label="string resource"
027 * android:name="string"
028 * android:targetPackage="string"
029 *
030 * @author John Ericksen
031 */
032public class Instrumentation extends ManifestBase {
033
034    private String icon;
035    private String label;
036    private String name;
037    private Boolean functionalTest;
038    private Boolean handleProfiling;
039    private String targetPackage;
040
041    @XmlAttribute(name = "functionalTest", namespace = ManifestNamespaceMapper.ANDROID_URI)
042    public Boolean getFunctionalTest() {
043        return functionalTest;
044    }
045
046    public void setFunctionalTest(Boolean functionalTest) {
047        this.functionalTest = functionalTest;
048    }
049
050    @XmlAttribute(name = "handleProfiling", namespace = ManifestNamespaceMapper.ANDROID_URI)
051    public Boolean getHandleProfiling() {
052        return handleProfiling;
053    }
054
055    public void setHandleProfiling(Boolean handleProfiling) {
056        this.handleProfiling = handleProfiling;
057    }
058
059    @XmlAttribute(name = "icon", namespace = ManifestNamespaceMapper.ANDROID_URI)
060    public String getIcon() {
061        return icon;
062    }
063
064    public void setIcon(String icon) {
065        this.icon = icon;
066    }
067
068    @XmlAttribute(name = "label", namespace = ManifestNamespaceMapper.ANDROID_URI)
069    public String getLabel() {
070        return label;
071    }
072
073    public void setLabel(String label) {
074        this.label = label;
075    }
076
077    @XmlAttribute(name = "name", namespace = ManifestNamespaceMapper.ANDROID_URI)
078    public String getName() {
079        return name;
080    }
081
082    public void setName(String name) {
083        this.name = name;
084    }
085
086    @XmlAttribute(name = "targetPackage", namespace = ManifestNamespaceMapper.ANDROID_URI)
087    public String getTargetPackage() {
088        return targetPackage;
089    }
090
091    public void setTargetPackage(String targetPackage) {
092        this.targetPackage = targetPackage;
093    }
094}