001: /*
002: * Helma License Notice
003: *
004: * The contents of this file are subject to the Helma License
005: * Version 2.0 (the "License"). You may not use this file except in
006: * compliance with the License. A copy of the License is available at
007: * http://adele.helma.org/download/helma/license.txt
008: *
009: * Copyright 1998-2003 Helma Software. All Rights Reserved.
010: *
011: * $RCSfile$
012: * $Author: root $
013: * $Revision: 8604 $
014: * $Date: 2007-09-28 15:16:38 +0200 (Fre, 28 Sep 2007) $
015: */
016:
017: package helma.objectmodel;
018:
019: import java.util.Date;
020:
021: /**
022: * Interface that is implemented by node properties.
023: */
024: public interface IProperty {
025: public static final int STRING = 1;
026: public static final int BOOLEAN = 2;
027: public static final int DATE = 3;
028: public static final int INTEGER = 4;
029: public static final int FLOAT = 5;
030: public static final int NODE = 6;
031: public static final int JAVAOBJECT = 7;
032:
033: /**
034: *
035: *
036: * @return ...
037: */
038: public String getName();
039:
040: /**
041: *
042: *
043: * @return ...
044: */
045: public int getType();
046:
047: /**
048: *
049: *
050: * @return ...
051: */
052: public Object getValue();
053:
054: /**
055: *
056: *
057: * @return ...
058: */
059: public INode getNodeValue();
060:
061: /**
062: *
063: *
064: * @return ...
065: */
066: public String getStringValue();
067:
068: /**
069: *
070: *
071: * @return ...
072: */
073: public boolean getBooleanValue();
074:
075: /**
076: *
077: *
078: * @return ...
079: */
080: public long getIntegerValue();
081:
082: /**
083: *
084: *
085: * @return ...
086: */
087: public double getFloatValue();
088:
089: /**
090: *
091: *
092: * @return ...
093: */
094: public Date getDateValue();
095:
096: /**
097: *
098: *
099: * @return ...
100: */
101: public Object getJavaObjectValue();
102: }
|