+++ /dev/null
-/*--------------------------------------------------------------------------\r
- * Copyright 2007 Taro L. Saito\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *--------------------------------------------------------------------------*/\r
-//--------------------------------------\r
-// XerialJ\r
-//\r
-// ComplexMap.java\r
-// Since: Dec 19, 2007 6:21:11 PM\r
-//\r
-// $URL: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core/src/test/java/org/xerial/util/bean/sample/ComplexMap.java $\r
-// $Author: leo $\r
-//--------------------------------------\r
-package org.xerial.util.bean.sample;\r
-\r
-import java.util.TreeMap;\r
-\r
-import org.xerial.core.XerialException;\r
-import org.xerial.util.bean.BeanUtil;\r
-\r
-@SuppressWarnings("serial")\r
-public class ComplexMap extends TreeMap<Integer, PersonTable>\r
-{\r
- private String name = "n/a";\r
-\r
- public ComplexMap() {\r
- super();\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public String toString() {\r
- try {\r
- return BeanUtil.toJSON(this);\r
- }\r
- catch (XerialException e) {\r
- return "{}";\r
- }\r
- }\r
-\r
-}
\ No newline at end of file