/** * Copyright (c)2010-2011 Enterprise Website Content Management System(EWCMS), All rights reserved. * EWCMS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * http://www.ewcms.com */ package com.ewcms.publication; /** * ObjectPropertyDirectiveTest测试使用类。 * * @author wangwei */ public class ObjectBean { private Integer id; private String title; private boolean readOnly; private ObjectBean parent; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public boolean isReadOnly() { return readOnly; } public void setReadOnly(boolean readOnly) { this.readOnly = readOnly; } public ObjectBean getParent() { return parent; } public void setParent(ObjectBean parent) { this.parent = parent; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ObjectBean other = (ObjectBean) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } @Override public String toString() { return "ObjectBean [id=" + id + ", title=" + title + ", readOnly=" + readOnly + ", parent=" + parent + "]"; } }