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:path="string"
024 * android:pathPrefix="string"
025 * android:pathPattern="string"
026 * android:permission="string"
027 * android:readPermission="string"
028 * android:writePermission="string"
029 *
030 * @author John Ericksen
031 */
032public class PathPermission extends ManifestBase {
033
034    private String path;
035    private String pathPrefix;
036    private String pathPattern;
037    private String permission;
038    private String readPermission;
039    private String writePermission;
040
041    @XmlAttribute(name = "path", namespace = ManifestNamespaceMapper.ANDROID_URI)
042    public String getPath() {
043        return path;
044    }
045
046    public void setPath(String path) {
047        this.path = path;
048    }
049
050    @XmlAttribute(name = "pathPrefix", namespace = ManifestNamespaceMapper.ANDROID_URI)
051    public String getPathPrefix() {
052        return pathPrefix;
053    }
054
055    public void setPathPrefix(String pathPrefix) {
056        this.pathPrefix = pathPrefix;
057    }
058
059    @XmlAttribute(name = "pathPattern", namespace = ManifestNamespaceMapper.ANDROID_URI)
060    public String getPathPattern() {
061        return pathPattern;
062    }
063
064    public void setPathPattern(String pathPattern) {
065        this.pathPattern = pathPattern;
066    }
067
068    @XmlAttribute(name = "permission", namespace = ManifestNamespaceMapper.ANDROID_URI)
069    public String getPermission() {
070        return permission;
071    }
072
073    public void setPermission(String permission) {
074        this.permission = permission;
075    }
076
077    @XmlAttribute(name = "readPermission", namespace = ManifestNamespaceMapper.ANDROID_URI)
078    public String getReadPermission() {
079        return readPermission;
080    }
081
082    public void setReadPermission(String readPermission) {
083        this.readPermission = readPermission;
084    }
085
086    @XmlAttribute(name = "writePermission", namespace = ManifestNamespaceMapper.ANDROID_URI)
087    public String getWritePermission() {
088        return writePermission;
089    }
090
091    public void setWritePermission(String writePermission) {
092        this.writePermission = writePermission;
093    }
094}