Android Open Source - Glowplug Glowplug Type






From Project

Back to project page Glowplug.

License

The source code is released under:

MIT License

If you think the Android project Glowplug listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.adecker.glowplugannotations;
//from  w  w w  .  j a v a  2  s.c om
/**
 * Created by alex on 12/20/13.
 */
public enum GlowplugType {
    LONG("java.lang.Long","Long","long"),
    INTEGER("java.lang.Integer","Integer","int"),
    DOUBLE("java.lang.Double","Double","double"),
    FLOAT("java.lang.Float","Float","float"),
    STRING("java.lang.String","String",null),
    BOOLEAN("java.lang.Boolean","Boolean","boolean"),
    BLOB("byte[]","byte[]","byte[]"),
    ;

    public static GlowplugType fromTypeName(String typeName) {
        if (typeName != null) {
            for (GlowplugType type : GlowplugType.values()) {
                if (typeName.equalsIgnoreCase(type.getType())) {
                    return type;
                }
            }
        }
        return null;
    }

    private String typeName, simpleName, primitiveName;

    GlowplugType(String typeName, String simpleName, String primitiveName) {
        this.typeName = typeName;
        this.simpleName = simpleName;
        this.primitiveName = primitiveName;
    }

    public String getType() {
        return typeName;
    }

    public String getSimpleName() {
        return simpleName;
    }

}




Java Source Code List

com.adecker.glowplug.GlowplugAttribute.java
com.adecker.glowplug.GlowplugContentProvider.java
com.adecker.glowplug.GlowplugEntity.java
com.adecker.glowplug.GlowplugOpenHelper.java
com.adecker.glowplug.GlowplugProperty.java
com.adecker.glowplug.GlowplugRelationship.java
com.adecker.glowplugannotations.Attribute.java
com.adecker.glowplugannotations.Entity.java
com.adecker.glowplugannotations.GlowplugType.java
com.adecker.glowplugannotations.Model.java
com.adecker.glowplugannotations.Relationship.java
com.adecker.glowplugcompiler.EntityProcessor.java
com.adecker.glowplugcompiler.Util.java
com.adecker.glowplugcompiler.VariableParser.java
com.adecker.glowplugcompiler.example.ActorListFragment.java
com.adecker.glowplugcompiler.example.FilmListFragment.java
com.adecker.glowplugcompiler.example.MainActivity.java
com.adecker.glowplugcompiler.example.model.DataModel.java
com.adecker.glowplugcompiler.example.model.MyActor.java
com.adecker.glowplugcompiler.example.model.MyFilm.java
com.adecker.glowplugcompiler.example.model.SakilaHelper.java
.file.java