01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.resource;
19:
20: public abstract class Resource {
21: private long lastModified;
22:
23: private String constraints;
24:
25: public Resource(long lastModified) {
26: this .lastModified = lastModified;
27: }
28:
29: public Resource(long lastModified, String constraints) {
30: this .lastModified = lastModified;
31: this .constraints = constraints;
32: }
33:
34: public long getLastModified() {
35: return lastModified;
36: }
37:
38: public String getConstraints() {
39: return constraints;
40: }
41:
42: public void setConstraints(String constraints) {
43: this .constraints = constraints;
44: }
45:
46: public boolean isNumber() {
47: return false;
48: }
49:
50: public boolean isString() {
51: return false;
52: }
53:
54: public boolean isText() {
55: return false;
56: }
57:
58: public boolean isBinary() {
59: return false;
60: }
61: }
|