/* 
 * Copyright 2015 Red Naga
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package android.content.res.chunk;

/**
 * Enum for attribute types for ChunkTypes
 *
 * @author tstrazzere
 */
public enum AttributeType {

    STRING {
        @Override
        public int getIntType() {
            return 0x03000008;
        }
    },
    INT {
        @Override
        public int getIntType() {
            return 0x10000008;
        }
    },
    RESOURCE {
        @Override
        public int getIntType() {
            return 0x01000008;
        }
    },
    BOOLEAN {
        @Override
        public int getIntType() {
            return 0x12000008;
        }
    };

    public abstract int getIntType();

}

@@ -1169,24 +1169,812 @@
 ;%0A        %7D%0A
+    %7D,%0A    ATTR %7B%0A        @Override%0A        public int getIntType() %7B%0A            return 0x02000008;%0A        %7D%0A    %7D,%0A    DIMEN %7B%0A        @Override%0A        public int getIntType() %7B%0A            return 0x05000008;%0A        %7D%0A    %7D,%0A    FRACTION %7B%0A        @Override%0A        public int getIntType() %7B%0A            return 0x06000008;%0A        %7D%0A    %7D,%0A    FLOAT %7B%0A        @Override%0A        public int getIntType() %7B%0A            return 0x04000008;%0A        %7D%0A    %7D,%0A    FLAGS %7B%0A        @Override%0A        public int getIntType() %7B%0A            return 0x11000008;%0A        %7D%0A    %7D,%0A    COLOR1 %7B%0A        @Override%0A        public int getIntType() %7B%0A            return 0x1C000008;%0A        %7D%0A    %7D,%0A    COLOR2 %7B%0A        @Override%0A        public int getIntType() %7B%0A            return 0x1D000008;%0A        %7D%0A
     %7D;%0A%0A    

Add previously unknown attribute types.