|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.objects.utils.Properties
Field Summary | |
static java.lang.String |
BOOLEANTYPE
|
static java.lang.String |
FLOATTYPE
|
static java.lang.String |
INTEGERTYPE
|
static java.lang.String |
STRINGTYPE
|
Constructor Summary | |
Properties()
|
Method Summary | |
static boolean |
addOrReplace(java.util.Vector properties,
Property newprop)
add newprop to properties, or update the value of an existing property with the same exact name and type. |
static boolean |
isBoolean(Property p)
Boolean content test |
static boolean |
isFloat(Property p)
Float content test |
static boolean |
isInteger(Property p)
Integer content test |
static boolean |
isString(Property p)
String content test |
static boolean |
isType(Property p,
java.lang.String typeString)
|
static boolean |
isValid(Property p)
validate property p against the known type strings and try to parse the content string accordingly |
static Property |
newProperty(java.lang.String name,
java.lang.String type,
java.lang.String content)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String STRINGTYPE
public static final java.lang.String FLOATTYPE
public static final java.lang.String INTEGERTYPE
public static final java.lang.String BOOLEANTYPE
Constructor Detail |
public Properties()
Method Detail |
public static Property newProperty(java.lang.String name, java.lang.String type, java.lang.String content)
public static boolean addOrReplace(java.util.Vector properties, Property newprop)
properties
- newprop
-
public static boolean isValid(Property p)
p
-
public static boolean isString(Property p)
p
-
public static boolean isFloat(Property p)
p
-
public static boolean isInteger(Property p)
p
-
public static boolean isBoolean(Property p)
p
-
public static boolean isType(Property p, java.lang.String typeString)
p
- the property to test for typetypeString
- one of the string constants in this class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |