// Path: c3po-api/src/main/java/com/petpet/c3po/api/model/helper/PropertyType.java
// public enum PropertyType {
//   STRING, BOOL, INTEGER, FLOAT, DATE, ARRAY
// }


import com.petpet.c3po.api.model.helper.PropertyType;
/*******************************************************************************
 * Copyright 2013 Petar Petrov <me@petarpetrov.org>
 * 
 * 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 com.petpet.c3po.api.model;


/**
 * A domain object encapsulating a property document.
 * 
 * @author Petar Petrov <me@petarpetrov.org>
 * 
 */
public class Property implements Model {

  /**
   * The id of the proeprty.
   */
  private String id;

  /**
   * The key of the property.
   */
  private String key;

  /**
   * The type of the property.
   */
  private String type;

  /**
   * A default constructor.
   */
  public Property() {

  }

  /**
   * Creates a property with the given key as key and id and sets the type to a
   * string.
   * 
   * @param key
   *          the key of the property.
   */
  public Property(String key) {
    this.id = key;
    this.key = key;
// Path: c3po-api/src/main/java/com/petpet/c3po/api/model/helper/PropertyType.java
// public enum PropertyType {
//   STRING, BOOL, INTEGER, FLOAT, DATE, ARRAY
// }


// Path: c3po-api/src/main/java/com/petpet/c3po/api/model/Property.java
import com.petpet.c3po.api.model.helper.PropertyType;

/*******************************************************************************
 * Copyright 2013 Petar Petrov <me@petarpetrov.org>
 * 
 * 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 com.petpet.c3po.api.model;


/**
 * A domain object encapsulating a property document.
 * 
 * @author Petar Petrov <me@petarpetrov.org>
 * 
 */
public class Property implements Model {

  /**
   * The id of the proeprty.
   */
  private String id;

  /**
   * The key of the property.
   */
  private String key;

  /**
   * The type of the property.
   */
  private String type;

  /**
   * A default constructor.
   */
  public Property() {

  }

  /**
   * Creates a property with the given key as key and id and sets the type to a
   * string.
   * 
   * @param key
   *          the key of the property.
   */
  public Property(String key) {
    this.id = key;
    this.key = key;
    this.type = PropertyType.STRING.name();