public class StringProperty extends Property
Title: StringProperty
Description: A string property.
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private String |
value
The value of this property.
|
Constructor and Description |
---|
StringProperty(String value)
Initializes the property to have the value indicated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Determines if the current property is equal to the given object.
|
static Property |
fromString(String property)
Creates a
StringProperty that is decoded from the given
String and returns it. |
String |
getString()
Retrieves the value of the property.
|
int |
getType()
Retrieves the type of property this is.
|
void |
setString(String value)
Sets the value of the property.
|
String |
toString()
Retreives the
String representation of the property. |
getBoolean, getByte, getChar, getDouble, getFloat, getInteger, getLong, getShort, setBoolean, setBtye, setChar, setDouble, setFloat, setInteger, setLong, setShort
private String value
public StringProperty(String value)
value
- The value to set the property at.public int getType()
getType
in class Property
Property.STRING
.Property.BOOLEAN
,
Property.STRING
,
Property.INTEGER
,
Property.LONG
,
Property.FLOAT
,
Property.DOUBLE
,
Property.CHAR
,
Property.BYTE
,
Property.FLOAT
public String toString()
String
representation of the property.public boolean equals(Object object)
public static Property fromString(String property)
StringProperty
that is decoded from the given
String
and returns it.property
- The property in String
form.StringProperty
form.public String getString()