001package org.nuxeo.box.api.marshalling.dao; 002 003import com.fasterxml.jackson.annotation.JsonProperty; 004 005import java.util.Map; 006 007/** 008 * Enterprise. 009 */ 010@SuppressWarnings("unused") 011public class BoxEnterprise extends BoxObject { 012 013 public static final String FIELD_NAME = "name"; 014 015 public BoxEnterprise() { 016 } 017 018 /** 019 * Copy constructor, this does deep copy for all the fields. 020 * 021 * @param obj 022 */ 023 public BoxEnterprise(BoxEnterprise obj) { 024 super(obj); 025 } 026 027 /** 028 * Instantiate the object from a map. Each entry in the map reflects to a field. 029 * 030 * @param map 031 */ 032 public BoxEnterprise(Map<String, Object> map) { 033 super(map); 034 } 035 036 private String name; 037 038 /** 039 * Get name of user's enterprise. 040 * 041 * @return name 042 */ 043 @JsonProperty(FIELD_NAME) 044 public String getName() { 045 return (String) getValue(FIELD_NAME); 046 } 047 048 /** 049 * Setter. This is only used by {@see <a href="http://jackson.codehaus .org">Jackson JSON processer</a>} 050 * 051 * @param name name 052 */ 053 054 @JsonProperty(FIELD_NAME) 055 private void setName(String name) { 056 put(FIELD_NAME, name); 057 } 058}