tizen-web-model

16:53:30.901 INFO  jd.cli.Main - Decompiling tizen-web-model.jar
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="buildProperty")
public class BuildProperty
{
  @XmlAttribute(name="key")
  protected String key;
  @XmlAttribute(name="value")
  protected String value;
  
  public String getKey()
  {
    return key;
  }
  
  public void setKey(String value)
  {
    key = value;
  }
  
  public String getValue()
  {
    return value;
  }
  
  public void setValue(String value)
  {
    this.value = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.BuildProperty
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="categoryType", namespace="http://www.tizen.org/tizen-template-config", propOrder={"category", "appTemplateId"})
public class CategoryType
{
  protected List<CategoryType> category;
  @XmlElement(name="app-template-id")
  protected List<String> appTemplateId;
  @XmlAttribute(name="id")
  protected Integer id;
  @XmlAttribute(name="name", required=true)
  protected String name;
  @XmlAttribute(name="icon")
  protected String icon;
  
  public List<CategoryType> getCategory()
  {
    if (category == null) {
      category = new ArrayList();
    }
    return category;
  }
  
  public List<String> getAppTemplateId()
  {
    if (appTemplateId == null) {
      appTemplateId = new ArrayList();
    }
    return appTemplateId;
  }
  
  public Integer getId()
  {
    return id;
  }
  
  public void setId(Integer value)
  {
    id = value;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String value)
  {
    name = value;
  }
  
  public String getIcon()
  {
    return icon;
  }
  
  public void setIcon(String value)
  {
    icon = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.CategoryType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="dependsElement", namespace="http://www.tizen.org/tizen-template-libraries")
public class DependsElement
{
  @XmlAttribute(name="name", required=true)
  protected String name;
  @XmlAttribute(name="version")
  protected String version;
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String value)
  {
    name = value;
  }
  
  public String getVersion()
  {
    return version;
  }
  
  public void setVersion(String value)
  {
    version = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.DependsElement
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="libraryElement", namespace="http://www.tizen.org/tizen-template-libraries", propOrder={"location", "depends"})
public class LibraryElement
{
  protected String location;
  protected List<DependsElement> depends;
  @XmlAttribute(name="name", required=true)
  protected String name;
  @XmlAttribute(name="supportLibraryType", required=true)
  protected TizenTemplateLibraryType supportLibraryType;
  @XmlAttribute(name="version", required=true)
  protected String version;
  @XmlAttribute(name="kindsOfLibrary", required=true)
  protected TizenTemplateKindsOfLibraries kindsOfLibrary;
  @XmlAttribute(name="key")
  protected String key;
  @XmlAttribute(name="originalValue")
  protected String originalValue;
  @XmlAttribute(name="minifiedValue")
  protected String minifiedValue;
  
  public String getLocation()
  {
    return location;
  }
  
  public void setLocation(String value)
  {
    location = value;
  }
  
  public List<DependsElement> getDepends()
  {
    if (depends == null) {
      depends = new ArrayList();
    }
    return depends;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String value)
  {
    name = value;
  }
  
  public TizenTemplateLibraryType getSupportLibraryType()
  {
    return supportLibraryType;
  }
  
  public void setSupportLibraryType(TizenTemplateLibraryType value)
  {
    supportLibraryType = value;
  }
  
  public String getVersion()
  {
    return version;
  }
  
  public void setVersion(String value)
  {
    version = value;
  }
  
  public TizenTemplateKindsOfLibraries getKindsOfLibrary()
  {
    return kindsOfLibrary;
  }
  
  public void setKindsOfLibrary(TizenTemplateKindsOfLibraries value)
  {
    kindsOfLibrary = value;
  }
  
  public String getKey()
  {
    return key;
  }
  
  public void setKey(String value)
  {
    key = value;
  }
  
  public String getOriginalValue()
  {
    return originalValue;
  }
  
  public void setOriginalValue(String value)
  {
    originalValue = value;
  }
  
  public String getMinifiedValue()
  {
    return minifiedValue;
  }
  
  public void setMinifiedValue(String value)
  {
    minifiedValue = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.LibraryElement
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;

@XmlRegistry
public class ObjectFactory
{
  private static final QName _TizenTemplateLibraries_QNAME = new QName("http://www.tizen.org/tizen-template-libraries", "tizen-template-libraries");
  private static final QName _TizenAppTemplate_QNAME = new QName("http://www.tizen.org/tizen-app-template", "tizen-app-template");
  private static final QName _TizenTemplateConfig_QNAME = new QName("http://www.tizen.org/tizen-template-config", "tizen-template-config");
  
  public DependsElement createDependsElement()
  {
    return new DependsElement();
  }
  
  public TizenTemplateLibraries createTizenTemplateLibraries()
  {
    return new TizenTemplateLibraries();
  }
  
  public OptionElement createOptionElement()
  {
    return new OptionElement();
  }
  
  public TizenAppTemplateType createTizenAppTemplateType()
  {
    return new TizenAppTemplateType();
  }
  
  public LibraryElement createLibraryElement()
  {
    return new LibraryElement();
  }
  
  public SupportLibrary createSupportLibrary()
  {
    return new SupportLibrary();
  }
  
  public Options createOptions()
  {
    return new Options();
  }
  
  public OptionGroup createOptionGroup()
  {
    return new OptionGroup();
  }
  
  public BuildProperty createBuildProperty()
  {
    return new BuildProperty();
  }
  
  public CategoryType createCategoryType()
  {
    return new CategoryType();
  }
  
  public TizenTemplateConfigType createTizenTemplateConfigType()
  {
    return new TizenTemplateConfigType();
  }
  
  public SupportLibraries createSupportLibraries()
  {
    return new SupportLibraries();
  }
  
  @XmlElementDecl(namespace="http://www.tizen.org/tizen-template-libraries", name="tizen-template-libraries")
  public JAXBElement<TizenTemplateLibraries> createTizenTemplateLibraries(TizenTemplateLibraries value)
  {
    return new JAXBElement(_TizenTemplateLibraries_QNAME, TizenTemplateLibraries.class, null, value);
  }
  
  @XmlElementDecl(namespace="http://www.tizen.org/tizen-app-template", name="tizen-app-template")
  public JAXBElement<TizenAppTemplateType> createTizenAppTemplate(TizenAppTemplateType value)
  {
    return new JAXBElement(_TizenAppTemplate_QNAME, TizenAppTemplateType.class, null, value);
  }
  
  @XmlElementDecl(namespace="http://www.tizen.org/tizen-template-config", name="tizen-template-config")
  public JAXBElement<TizenTemplateConfigType> createTizenTemplateConfig(TizenTemplateConfigType value)
  {
    return new JAXBElement(_TizenTemplateConfig_QNAME, TizenTemplateConfigType.class, null, value);
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.ObjectFactory
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="optionElement", propOrder={"description", "additionalOption"})
public class OptionElement
{
  protected String description;
  protected List<OptionElement> additionalOption;
  @XmlAttribute(name="name", required=true)
  protected String name;
  @XmlAttribute(name="defaultElement")
  protected Boolean defaultElement;
  @XmlAttribute(name="key")
  protected String key;
  @XmlAttribute(name="value", required=true)
  protected String value;
  @XmlAttribute(name="image")
  protected String image;
  
  public String getDescription()
  {
    return description;
  }
  
  public void setDescription(String value)
  {
    description = value;
  }
  
  public List<OptionElement> getAdditionalOption()
  {
    if (additionalOption == null) {
      additionalOption = new ArrayList();
    }
    return additionalOption;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String value)
  {
    name = value;
  }
  
  public Boolean isDefaultElement()
  {
    return defaultElement;
  }
  
  public void setDefaultElement(Boolean value)
  {
    defaultElement = value;
  }
  
  public String getKey()
  {
    return key;
  }
  
  public void setKey(String value)
  {
    key = value;
  }
  
  public String getValue()
  {
    return value;
  }
  
  public void setValue(String value)
  {
    this.value = value;
  }
  
  public String getImage()
  {
    return image;
  }
  
  public void setImage(String value)
  {
    image = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.OptionElement
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="optionGroup", propOrder={"optionElement", "optionGroup"})
public class OptionGroup
{
  protected List<OptionElement> optionElement;
  protected List<OptionGroup> optionGroup;
  @XmlAttribute(name="name", required=true)
  protected String name;
  @XmlAttribute(name="optionType", required=true)
  protected OptionType optionType;
  @XmlAttribute(name="key")
  protected String key;
  @XmlAttribute(name="image")
  protected String image;
  
  public List<OptionElement> getOptionElement()
  {
    if (optionElement == null) {
      optionElement = new ArrayList();
    }
    return optionElement;
  }
  
  public List<OptionGroup> getOptionGroup()
  {
    if (optionGroup == null) {
      optionGroup = new ArrayList();
    }
    return optionGroup;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String value)
  {
    name = value;
  }
  
  public OptionType getOptionType()
  {
    return optionType;
  }
  
  public void setOptionType(OptionType value)
  {
    optionType = value;
  }
  
  public String getKey()
  {
    return key;
  }
  
  public void setKey(String value)
  {
    key = value;
  }
  
  public String getImage()
  {
    return image;
  }
  
  public void setImage(String value)
  {
    image = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.OptionGroup
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="optionType")
@XmlEnum
public enum OptionType
{
  MANDATORY,  MULTI_SELECTION,  SINGLE_SELECTION;
  
  private OptionType() {}
  
  public String value()
  {
    return name();
  }
  
  public static OptionType fromValue(String v)
  {
    return valueOf(v);
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.OptionType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="options", propOrder={"supportLibraries", "optionGroup"})
public class Options
{
  protected SupportLibraries supportLibraries;
  protected List<OptionGroup> optionGroup;
  
  public SupportLibraries getSupportLibraries()
  {
    return supportLibraries;
  }
  
  public void setSupportLibraries(SupportLibraries value)
  {
    supportLibraries = value;
  }
  
  public List<OptionGroup> getOptionGroup()
  {
    if (optionGroup == null) {
      optionGroup = new ArrayList();
    }
    return optionGroup;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.Options
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="supportLibraries", propOrder={"library"})
public class SupportLibraries
{
  @XmlElement(required=true)
  protected List<SupportLibrary> library;
  
  public List<SupportLibrary> getLibrary()
  {
    if (library == null) {
      library = new ArrayList();
    }
    return library;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.SupportLibraries
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="supportLibrary")
public class SupportLibrary
{
  @XmlAttribute(name="name", required=true)
  protected String name;
  @XmlAttribute(name="minVersion")
  protected String minVersion;
  @XmlAttribute(name="maxVersion")
  protected String maxVersion;
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String value)
  {
    name = value;
  }
  
  public String getMinVersion()
  {
    return minVersion;
  }
  
  public void setMinVersion(String value)
  {
    minVersion = value;
  }
  
  public String getMaxVersion()
  {
    return maxVersion;
  }
  
  public void setMaxVersion(String value)
  {
    maxVersion = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.SupportLibrary
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="tizenAppTemplateType", propOrder={"templateName", "templateId", "widgetType", "descriptionFileName", "buildProperty", "options"})
public class TizenAppTemplateType
{
  @XmlElement(name="template-name", required=true)
  protected String templateName;
  @XmlElement(name="template-id", required=true)
  protected String templateId;
  @XmlElement(name="widget-type", required=true)
  protected WidgetType widgetType;
  @XmlElement(name="description-file-name", required=true)
  protected String descriptionFileName;
  @XmlElement(name="build-property")
  protected List<BuildProperty> buildProperty;
  protected Options options;
  @XmlAttribute(name="template-version")
  protected String templateVersion;
  @XmlAttribute(name="sdk-version")
  protected String sdkVersion;
  @XmlAttribute(name="icon32")
  protected String icon32;
  @XmlAttribute(name="icon64")
  protected String icon64;
  @XmlAttribute(name="icon128")
  protected String icon128;
  
  public String getTemplateName()
  {
    return templateName;
  }
  
  public void setTemplateName(String value)
  {
    templateName = value;
  }
  
  public String getTemplateId()
  {
    return templateId;
  }
  
  public void setTemplateId(String value)
  {
    templateId = value;
  }
  
  public WidgetType getWidgetType()
  {
    return widgetType;
  }
  
  public void setWidgetType(WidgetType value)
  {
    widgetType = value;
  }
  
  public String getDescriptionFileName()
  {
    return descriptionFileName;
  }
  
  public void setDescriptionFileName(String value)
  {
    descriptionFileName = value;
  }
  
  public List<BuildProperty> getBuildProperty()
  {
    if (buildProperty == null) {
      buildProperty = new ArrayList();
    }
    return buildProperty;
  }
  
  public Options getOptions()
  {
    return options;
  }
  
  public void setOptions(Options value)
  {
    options = value;
  }
  
  public String getTemplateVersion()
  {
    return templateVersion;
  }
  
  public void setTemplateVersion(String value)
  {
    templateVersion = value;
  }
  
  public String getSdkVersion()
  {
    return sdkVersion;
  }
  
  public void setSdkVersion(String value)
  {
    sdkVersion = value;
  }
  
  public String getIcon32()
  {
    return icon32;
  }
  
  public void setIcon32(String value)
  {
    icon32 = value;
  }
  
  public String getIcon64()
  {
    return icon64;
  }
  
  public void setIcon64(String value)
  {
    icon64 = value;
  }
  
  public String getIcon128()
  {
    return icon128;
  }
  
  public void setIcon128(String value)
  {
    icon128 = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.TizenAppTemplateType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="tizenTemplateConfigType", namespace="http://www.tizen.org/tizen-template-config", propOrder={"category", "appTemplateRootpath"})
public class TizenTemplateConfigType
{
  @XmlElement(required=true)
  protected List<CategoryType> category;
  @XmlElement(name="app-template-rootpath", required=true)
  protected String appTemplateRootpath;
  @XmlAttribute(name="template-version")
  protected String templateVersion;
  @XmlAttribute(name="sdk-version")
  protected String sdkVersion;
  
  public List<CategoryType> getCategory()
  {
    if (category == null) {
      category = new ArrayList();
    }
    return category;
  }
  
  public String getAppTemplateRootpath()
  {
    return appTemplateRootpath;
  }
  
  public void setAppTemplateRootpath(String value)
  {
    appTemplateRootpath = value;
  }
  
  public String getTemplateVersion()
  {
    return templateVersion;
  }
  
  public void setTemplateVersion(String value)
  {
    templateVersion = value;
  }
  
  public String getSdkVersion()
  {
    return sdkVersion;
  }
  
  public void setSdkVersion(String value)
  {
    sdkVersion = value;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.TizenTemplateConfigType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="tizenTemplateKindsOfLibraries", namespace="http://www.tizen.org/tizen-template-libraries")
@XmlEnum
public enum TizenTemplateKindsOfLibraries
{
  JAVASCRIPT,  CSS,  TIZENWEBUIFW,  OTHERS;
  
  private TizenTemplateKindsOfLibraries() {}
  
  public String value()
  {
    return name();
  }
  
  public static TizenTemplateKindsOfLibraries fromValue(String v)
  {
    return valueOf(v);
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.TizenTemplateKindsOfLibraries
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="tizenTemplateLibraries", namespace="http://www.tizen.org/tizen-template-libraries", propOrder={"libraryElement"})
public class TizenTemplateLibraries
{
  @XmlElement(required=true)
  protected List<LibraryElement> libraryElement;
  
  public List<LibraryElement> getLibraryElement()
  {
    if (libraryElement == null) {
      libraryElement = new ArrayList();
    }
    return libraryElement;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.TizenTemplateLibraries
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="tizenTemplateLibraryType", namespace="http://www.tizen.org/tizen-template-libraries")
@XmlEnum
public enum TizenTemplateLibraryType
{
  ORIGINAL,  MINIFIED,  BOTH;
  
  private TizenTemplateLibraryType() {}
  
  public String value()
  {
    return name();
  }
  
  public static TizenTemplateLibraryType fromValue(String v)
  {
    return valueOf(v);
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.TizenTemplateLibraryType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="widgetType")
@XmlEnum
public enum WidgetType
{
  TIZEN("TIZEN"),  WAC("WAC"),  UI_BUILDER("UIBuilder");
  
  private final String value;
  
  private WidgetType(String v)
  {
    value = v;
  }
  
  public String value()
  {
    return value;
  }
  
  public static WidgetType fromValue(String v)
  {
    for (WidgetType c : ) {
      if (value.equals(v)) {
        return c;
      }
    }
    throw new IllegalArgumentException(v);
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.WidgetType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.apptemplate.model;

import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;

@XmlSchema(namespace="http://www.tizen.org/tizen-app-template", elementFormDefault=XmlNsForm.QUALIFIED)
abstract interface package-info {}

/* Location:
 * Qualified Name:     org.tizen.web.apptemplate.model.package-info
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model;

import java.util.List;

public abstract interface Category
{
  public abstract List<Category> getCategory();
  
  public abstract List<String> getAppTemplateId();
  
  public abstract int getId();
  
  public abstract String getName();
  
  public abstract void setId(int paramInt);
  
  public abstract void setName(String paramString);
  
  public abstract void setIcon(String paramString);
  
  public abstract String getIcon();
}

/* Location:
 * Qualified Name:     org.tizen.web.model.Category
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model;

import java.util.List;
import org.tizen.web.apptemplate.model.LibraryElement;
import org.tizen.web.apptemplate.model.TizenTemplateLibraries;

public abstract interface ITizenTemplateLibraries
{
  public abstract List<LibraryElement> getLibraries();
  
  public abstract boolean addLibrary(LibraryElement paramLibraryElement);
  
  public abstract boolean removeLibrary(LibraryElement paramLibraryElement);
  
  public abstract TizenTemplateLibraries getModelLibraries();
}

/* Location:
 * Qualified Name:     org.tizen.web.model.ITizenTemplateLibraries
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model;

import java.util.List;
import org.tizen.web.apptemplate.model.BuildProperty;
import org.tizen.web.apptemplate.model.Options;
import org.tizen.web.apptemplate.model.WidgetType;

public abstract interface TizenAppTemplate
{
  public abstract String getTemplateId();
  
  public abstract String getDescriptionFileName();
  
  public abstract String getSdkVersion();
  
  public abstract String getTemplateName();
  
  public abstract String getTemplateVersion();
  
  public abstract WidgetType getWidgetType();
  
  public abstract String getTemplateRoot();
  
  public abstract String getIcon32();
  
  public abstract String getIcon64();
  
  public abstract String getIcon128();
  
  public abstract void setTemplateId(String paramString);
  
  public abstract void setDescriptionFileName(String paramString);
  
  public abstract void setSdkVersion(String paramString);
  
  public abstract void setTemplateName(String paramString);
  
  public abstract void setTemplateVersion(String paramString);
  
  public abstract void setWidgetType(WidgetType paramWidgetType);
  
  public abstract void setTemplateRoot(String paramString);
  
  public abstract void setIcon32(String paramString);
  
  public abstract void setIcon64(String paramString);
  
  public abstract void setIcon128(String paramString);
  
  public abstract List<String> getIconList();
  
  public abstract Options getOptions();
  
  public abstract void setOptions(Options paramOptions);
  
  public abstract List<BuildProperty> getBuildProperty();
}

/* Location:
 * Qualified Name:     org.tizen.web.model.TizenAppTemplate
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model;

import java.io.File;
import java.io.FileNotFoundException;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import org.tizen.web.apptemplate.model.CategoryType;
import org.tizen.web.apptemplate.model.ObjectFactory;
import org.tizen.web.apptemplate.model.TizenAppTemplateType;
import org.tizen.web.apptemplate.model.TizenTemplateConfigType;
import org.tizen.web.model.impl.TizenAppTemplateImpl;
import org.tizen.web.model.impl.TizenTemplateConfigImpl;
import org.tizen.web.model.impl.TizenTemplateLibrariesImpl;

public class TizenModelFactory
{
  public static final String AppTemplateSchemeLocation = "http://www.tizen.org/tizen-app-template tizen-app-template.xsd ";
  static ObjectFactory objFactory = new ObjectFactory();
  static JAXBContext jaxbContext = null;
  
  static
  {
    try
    {
      jaxbContext = JAXBContext.newInstance(ObjectFactory.class.getPackage().getName());
    }
    catch (JAXBException e)
    {
      e.printStackTrace();
    }
  }
  
  public static JAXBElement<TizenTemplateConfigType> getTemplateConfigRoot(TizenTemplateConfigType value)
  {
    return objFactory.createTizenTemplateConfig(value);
  }
  
  public static TizenTemplateConfigType getTemplateConfig()
  {
    return objFactory.createTizenTemplateConfigType();
  }
  
  public static CategoryType getTemplateCategory()
  {
    return objFactory.createCategoryType();
  }
  
  public static CategoryType getTemplateCategory(int id, String name)
  {
    CategoryType category = objFactory.createCategoryType();
    category.setId(Integer.valueOf(id));
    category.setName(name);
    
    return category;
  }
  
  public static TizenAppTemplateType getAppTemplate()
  {
    return objFactory.createTizenAppTemplateType();
  }
  
  public static JAXBElement<TizenAppTemplateType> getAppTemplateRoot(TizenAppTemplateType appTemplateType)
  {
    return objFactory.createTizenAppTemplate(appTemplateType);
  }
  
  public static TizenTemplateConfig unmarshalTemplateConfig(String configFilePath)
    throws FileNotFoundException
  {
    if (null == configFilePath) {
      return null;
    }
    File configFile = new File(configFilePath);
    return unmarshalTemplateConfig(configFile);
  }
  
  public static TizenTemplateConfig unmarshalTemplateConfig(File configFile)
    throws FileNotFoundException
  {
    if (null == configFile) {
      return null;
    }
    TizenTemplateConfig templateConfig = null;
    try
    {
      Object configModel = unmarshalObject(configFile);
      
      templateConfig = new TizenTemplateConfigImpl((JAXBElement)configModel);
    }
    catch (JAXBException e)
    {
      e.printStackTrace();
    }
    return templateConfig;
  }
  
  public static TizenAppTemplate unmarshalAppTemplate(String appTemplatePath)
    throws FileNotFoundException
  {
    if (null == appTemplatePath) {
      return null;
    }
    File appTemplateFile = new File(appTemplatePath);
    return unmarshalAppTemplate(appTemplateFile);
  }
  
  public static TizenAppTemplate unmarshalAppTemplate(File appTemplateFile)
    throws FileNotFoundException
  {
    if (null == appTemplateFile) {
      return null;
    }
    TizenAppTemplate appTemplate = null;
    try
    {
      Object configModel = unmarshalObject(appTemplateFile);
      
      appTemplate = new TizenAppTemplateImpl((JAXBElement)configModel);
      appTemplate.setTemplateRoot(appTemplateFile.getParent());
    }
    catch (JAXBException e)
    {
      e.printStackTrace();
    }
    return appTemplate;
  }
  
  public static boolean marshalAppTemplate(TizenAppTemplateType appTemplateType, File appTemplateFile)
  {
    if (null == appTemplateType) {
      return false;
    }
    JAXBElement<TizenAppTemplateType> appTemplateModel = getAppTemplateRoot(appTemplateType);
    
    marshalAppTemplate(appTemplateModel, appTemplateFile);
    
    return true;
  }
  
  public static boolean marshalAppTemplate(JAXBElement<TizenAppTemplateType> appTemplateType, File appTemplateFile)
  {
    if ((null == appTemplateType) || (null == appTemplateFile)) {
      return false;
    }
    try
    {
      JAXBContext jaxbContextForAppTemplate = JAXBContext.newInstance(new Class[] { TizenAppTemplateType.class });
      
      Marshaller marshaller = jaxbContextForAppTemplate.createMarshaller();
      marshaller.setProperty("jaxb.formatted.output", Boolean.TRUE);
      marshaller.setProperty("jaxb.schemaLocation", "http://www.tizen.org/tizen-app-template tizen-app-template.xsd ");
      
      marshaller.marshal(appTemplateType, appTemplateFile);
    }
    catch (JAXBException e)
    {
      e.printStackTrace();
      return false;
    }
    return true;
  }
  
  public static ITizenTemplateLibraries unmarshalTemplateLibraries(String librariesPath)
    throws FileNotFoundException
  {
    if (null == librariesPath) {
      return null;
    }
    File librariesFile = new File(librariesPath);
    return unmarshalTemplateLibraries(librariesFile);
  }
  
  public static ITizenTemplateLibraries unmarshalTemplateLibraries(File librariesFile)
    throws FileNotFoundException
  {
    if (null == librariesFile) {
      return null;
    }
    TizenTemplateLibrariesImpl libraries = null;
    try
    {
      Object model = unmarshalObject(librariesFile);
      
      libraries = new TizenTemplateLibrariesImpl((JAXBElement)model);
    }
    catch (JAXBException e)
    {
      e.printStackTrace();
    }
    return libraries;
  }
  
  /* Error */
  private static Object unmarshalObject(File sourceFile)
    throws FileNotFoundException, JAXBException
  {
    // Byte code:
    //   0: aconst_null
    //   1: aload_0
    //   2: if_acmpne +5 -> 7
    //   5: aconst_null
    //   6: areturn
    //   7: aload_0
    //   8: invokevirtual 40	java/io/File:exists	()Z
    //   11: ifne +33 -> 44
    //   14: new 41	java/io/FileNotFoundException
    //   17: dup
    //   18: new 42	java/lang/StringBuilder
    //   21: dup
    //   22: invokespecial 43	java/lang/StringBuilder:<init>	()V
    //   25: ldc 44
    //   27: invokevirtual 45	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   30: aload_0
    //   31: invokevirtual 46	java/io/File:getAbsolutePath	()Ljava/lang/String;
    //   34: invokevirtual 45	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   37: invokevirtual 47	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   40: invokespecial 48	java/io/FileNotFoundException:<init>	(Ljava/lang/String;)V
    //   43: athrow
    //   44: getstatic 49	org/tizen/web/model/TizenModelFactory:jaxbContext	Ljavax/xml/bind/JAXBContext;
    //   47: invokevirtual 50	javax/xml/bind/JAXBContext:createUnmarshaller	()Ljavax/xml/bind/Unmarshaller;
    //   50: astore_1
    //   51: aconst_null
    //   52: astore_2
    //   53: new 51	java/io/FileInputStream
    //   56: dup
    //   57: aload_0
    //   58: invokespecial 52	java/io/FileInputStream:<init>	(Ljava/io/File;)V
    //   61: astore_2
    //   62: aload_1
    //   63: aload_2
    //   64: invokeinterface 53 2 0
    //   69: astore_3
    //   70: iconst_1
    //   71: anewarray 54	java/lang/Object
    //   74: dup
    //   75: iconst_0
    //   76: aload_2
    //   77: aastore
    //   78: invokestatic 55	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   81: aload_3
    //   82: areturn
    //   83: astore 4
    //   85: iconst_1
    //   86: anewarray 54	java/lang/Object
    //   89: dup
    //   90: iconst_0
    //   91: aload_2
    //   92: aastore
    //   93: invokestatic 55	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   96: aload 4
    //   98: athrow
    // Line number table:
    //   Java source line #245	-> byte code offset #0
    //   Java source line #247	-> byte code offset #5
    //   Java source line #250	-> byte code offset #7
    //   Java source line #251	-> byte code offset #14
    //   Java source line #254	-> byte code offset #44
    //   Java source line #255	-> byte code offset #51
    //   Java source line #257	-> byte code offset #53
    //   Java source line #258	-> byte code offset #62
    //   Java source line #260	-> byte code offset #70
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	99	0	sourceFile	File
    //   50	13	1	unmarshaller	javax.xml.bind.Unmarshaller
    //   52	40	2	is	java.io.InputStream
    //   69	13	3	localObject1	Object
    //   83	14	4	localObject2	Object
    // Exception table:
    //   from	to	target	type
    //   53	70	83	finally
    //   83	85	83	finally
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.model.TizenModelFactory
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model;

import java.util.List;

public abstract interface TizenTemplateConfig
{
  public abstract String getAppTemplateRootpath();
  
  public abstract List<Category> getCategory();
  
  public abstract String getTemplateVersion();
  
  public abstract String getSdkVersion();
  
  public abstract void setAppTemplateRootpath(String paramString);
  
  public abstract void setTemplateVersion(String paramString);
  
  public abstract void setSdkVersion(String paramString);
  
  public abstract void setCategory(List<Category> paramList);
}

/* Location:
 * Qualified Name:     org.tizen.web.model.TizenTemplateConfig
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model.impl;

import java.util.ArrayList;
import java.util.List;
import org.tizen.web.apptemplate.model.CategoryType;
import org.tizen.web.model.Category;
import org.tizen.web.model.util.ModelUtil;

public class CategoryImpl
  implements Category
{
  private CategoryType categoryType;
  private List<Category> categoryList = null;
  
  public CategoryImpl(CategoryType categoryType)
  {
    this.categoryType = categoryType;
  }
  
  public List<Category> getCategory()
  {
    if (null != categoryList) {
      return categoryList;
    }
    categoryList = new ArrayList();
    List<CategoryType> categoryListJaxb = categoryType.getCategory();
    return ModelUtil.copyCategoryList(categoryListJaxb, categoryList);
  }
  
  public int getId()
  {
    if (null == categoryType.getId()) {
      return 0;
    }
    return categoryType.getId().intValue();
  }
  
  public String getName()
  {
    return categoryType.getName();
  }
  
  public void setId(int id)
  {
    categoryType.setId(Integer.valueOf(id));
  }
  
  public void setName(String name)
  {
    categoryType.setName(name);
  }
  
  public void setIcon(String icon)
  {
    categoryType.setIcon(icon);
  }
  
  public String getIcon()
  {
    return categoryType.getIcon();
  }
  
  public List<String> getAppTemplateId()
  {
    return categoryType.getAppTemplateId();
  }
  
  public String toString()
  {
    int maxLen = 10;
    StringBuilder builder = new StringBuilder();
    builder.append("CategoryImpl [getCategory()=");
    builder.append(getCategory() != null ? getCategory().subList(0, Math.min(getCategory().size(), 10)) : null);
    
    builder.append(", getId()=");
    builder.append(getId());
    builder.append(", getName()=");
    builder.append(getName());
    builder.append(", getIcon()=");
    builder.append(getIcon());
    builder.append(", getAppTemplateId()=");
    builder.append(getAppTemplateId() != null ? getAppTemplateId().subList(0, Math.min(getAppTemplateId().size(), 10)) : null);
    
    builder.append("]");
    return builder.toString();
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.model.impl.CategoryImpl
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model.impl;

import org.tizen.web.apptemplate.model.TizenAppTemplateType;

public class TizenAppTemplateExt
  extends TizenAppTemplateType
{}

/* Location:
 * Qualified Name:     org.tizen.web.model.impl.TizenAppTemplateExt
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.model.impl;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import org.tizen.web.apptemplate.model.BuildProperty;
import org.tizen.web.apptemplate.model.Options;
import org.tizen.web.apptemplate.model.TizenAppTemplateType;
import org.tizen.web.apptemplate.model.WidgetType;
import org.tizen.web.model.TizenAppTemplate;

public class TizenAppTemplateImpl
  implements TizenAppTemplate
{
  private TizenAppTemplateType appTemplateType;
  private String rootPath;
  
  public TizenAppTemplateImpl(JAXBElement<TizenAppTemplateType> root)
  {
    assert (null != root) : "root must not be null!";
    appTemplateType = ((TizenAppTemplateType)root.getValue());
  }
  
  public String getTemplateId()
  {
    return appTemplateType.getTemplateId();
  }
  
  public String getDescriptionFileName()
  {
    
1 2

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd