// Path: src/main/java/com/morcinek/android/codegenerator/extractor/model/ResourceType.java
// public class ResourceType {
// 
//     private String className;
// 
//     private String packageName;
// 
//     public ResourceType(String className) {
//         this.className = className;
//     }
// 
//     public ResourceType(String className, String packageName) {
//         this.className = className;
//         this.packageName = packageName;
//     }
// 
//     public String getClassName() {
//         return className;
//     }
// 
//     public String getPackageName() {
//         return packageName;
//     }
// 
//     public String getFullName() {
//         if (packageName != null) {
//             return packageName + "." + className;
//         }
//         return className;
//     }
// }


import com.morcinek.android.codegenerator.extractor.model.ResourceType;
package com.morcinek.android.codegenerator.extractor.string;


/**
 * Copyright 2014 Tomasz Morcinek. All rights reserved.
 */
public class ResourceTypeExtractor implements StringExtractor<ResourceType> {

    @Override
    public ResourceType extractFromString(String typeName) {
        int lastDot = typeName.lastIndexOf(".");
        if (lastDot == -1) {
// Path: src/main/java/com/morcinek/android/codegenerator/extractor/model/ResourceType.java
// public class ResourceType {
// 
//     private String className;
// 
//     private String packageName;
// 
//     public ResourceType(String className) {
//         this.className = className;
//     }
// 
//     public ResourceType(String className, String packageName) {
//         this.className = className;
//         this.packageName = packageName;
//     }
// 
//     public String getClassName() {
//         return className;
//     }
// 
//     public String getPackageName() {
//         return packageName;
//     }
// 
//     public String getFullName() {
//         if (packageName != null) {
//             return packageName + "." + className;
//         }
//         return className;
//     }
// }


// Path: src/main/java/com/morcinek/android/codegenerator/extractor/string/ResourceTypeExtractor.java
import com.morcinek.android.codegenerator.extractor.model.ResourceType;

package com.morcinek.android.codegenerator.extractor.string;


/**
 * Copyright 2014 Tomasz Morcinek. All rights reserved.
 */
public class ResourceTypeExtractor implements StringExtractor<ResourceType> {

    @Override
    public ResourceType extractFromString(String typeName) {
        int lastDot = typeName.lastIndexOf(".");
        if (lastDot == -1) {
            return new ResourceType(typeName);