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; 019import javax.xml.bind.annotation.XmlElement; 020import java.util.ArrayList; 021import java.util.List; 022 023/** 024 * attributes 025 * android:enabled=["true" | "false"] 026 * android:exported=["true" | "false"] 027 * android:icon="drawable resource" 028 * android:label="string resource" 029 * android:name="string" 030 * android:permission="string" 031 * android:targetActivity="string" 032 * <p/> 033 * can contain: 034 * <intent-filter> 035 * <meta-data> 036 * 037 * @author John Ericksen 038 */ 039public class ActivityAlias extends ManifestBase { 040 041 private Boolean enabled; 042 private Boolean exported; 043 private String icon; 044 private String label; 045 private String name; 046 private String permission; 047 private String targetActivity; 048 private List<IntentFilter> intentFilters = new ArrayList<IntentFilter>(); 049 private List<MetaData> metaData = new ArrayList<MetaData>(); 050 051 @XmlAttribute(name = "enabled", namespace = ManifestNamespaceMapper.ANDROID_URI) 052 public Boolean getEnabled() { 053 return enabled; 054 } 055 056 public void setEnabled(Boolean enabled) { 057 this.enabled = enabled; 058 } 059 060 @XmlAttribute(name = "exported", namespace = ManifestNamespaceMapper.ANDROID_URI) 061 public Boolean getExported() { 062 return exported; 063 } 064 065 public void setExported(Boolean exported) { 066 this.exported = exported; 067 } 068 069 @XmlAttribute(name = "icon", namespace = ManifestNamespaceMapper.ANDROID_URI) 070 public String getIcon() { 071 return icon; 072 } 073 074 public void setIcon(String icon) { 075 this.icon = icon; 076 } 077 078 @XmlAttribute(name = "label", namespace = ManifestNamespaceMapper.ANDROID_URI) 079 public String getLabel() { 080 return label; 081 } 082 083 public void setLabel(String label) { 084 this.label = label; 085 } 086 087 @XmlAttribute(name = "name", namespace = ManifestNamespaceMapper.ANDROID_URI) 088 public String getName() { 089 return name; 090 } 091 092 public void setName(String name) { 093 this.name = name; 094 } 095 096 @XmlAttribute(name = "permission", namespace = ManifestNamespaceMapper.ANDROID_URI) 097 public String getPermission() { 098 return permission; 099 } 100 101 public void setPermission(String permission) { 102 this.permission = permission; 103 } 104 105 @XmlAttribute(name = "targetActivity", namespace = ManifestNamespaceMapper.ANDROID_URI) 106 public String getTargetActivity() { 107 return targetActivity; 108 } 109 110 public void setTargetActivity(String targetActivity) { 111 this.targetActivity = targetActivity; 112 } 113 114 @XmlElement(name = "intent-filter") 115 public List<IntentFilter> getIntentFilters() { 116 return intentFilters; 117 } 118 119 public void setIntentFilters(List<IntentFilter> intentFilters) { 120 this.intentFilters = intentFilters; 121 } 122 123 @XmlElement(name = "meta-data") 124 public List<MetaData> getMetaData() { 125 return metaData; 126 } 127 128 public void setMetaData(List<MetaData> metaData) { 129 this.metaData = metaData; 130 } 131}