001/* 002 * Copyright 2012 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.docstore.model.xmlpojo.metadata; 017 018import com.thoughtworks.xstream.annotations.XStreamAlias; 019import com.thoughtworks.xstream.annotations.XStreamAsAttribute; 020 021import java.util.Properties; 022 023/** 024 * Class Field to represent entity Field. 025 * 026 * @author Rajesh Chowdary K 027 * @created Jun 14, 2012 028 */ 029@XStreamAlias("field") 030public class Field { 031 032 @XStreamAsAttribute 033 private String name; 034 private Properties properties = new Properties(); 035 036 public String getName() { 037 return name; 038 } 039 040 public void setName(String name) { 041 this.name = name; 042 } 043 044 public void set(String property, String value) { 045 properties.put(property, value); 046 } 047 048 public String get(String property) { 049 return properties.getProperty(property); 050 } 051 052 public Properties getProperties() { 053 return properties; 054 } 055 056}