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 org.androidtransfuse.model.Identified;
019import org.androidtransfuse.model.Mergeable;
020import org.androidtransfuse.processor.Merge;
021
022import javax.xml.bind.annotation.XmlAttribute;
023import javax.xml.bind.annotation.XmlTransient;
024
025/**
026 * attributes:
027 * android:name
028 *
029 * @author John Ericksen
030 */
031public class Action extends Mergeable implements Identified {
032
033    private String name;
034
035    public String getName() {
036        return name;
037    }
038
039    @Merge("n")
040    @XmlAttribute(name = "name", namespace = ManifestNamespaceMapper.ANDROID_URI)
041    public void setName(String name) {
042        this.name = name;
043    }
044
045    @Override
046    @XmlTransient
047    public String getIdentifier() {
048        return name;
049    }
050}