|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.IlvFeatureAttribute
ilog.views.maps.attribute.IlvStringAttribute
public class IlvStringAttribute
This feature attribute stores Strings.
| Constructor Summary | |
|---|---|
IlvStringAttribute()
Creates a string attribute. |
|
IlvStringAttribute(IlvInputStream stream)
Reads an IlvStringAttribute from an
IlvInputStream. |
|
IlvStringAttribute(IlvStringAttribute source)
Creates a string attribute by copying an existing one. |
|
IlvStringAttribute(String str)
Creates a string attribute. |
|
| Method Summary | |
|---|---|
IlvFeatureAttribute |
copy()
Copies this object |
String |
getString()
Returns the value of the attribute. |
void |
setChars(char[] chars)
Sets an internal array of chars that will be used to compute the value of the string attribute. |
void |
setString(String string)
Sets the string of the attribute. |
static String |
StringValue(IlvAttributeProperty attributes,
String name)
Returns the String value of the
IlvStringAttribute whose name is specified. |
String |
toString()
Converts the attribute into a string. |
void |
write(IlvOutputStream stream)
Writes this to an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvStringAttribute()
public IlvStringAttribute(String str)
public IlvStringAttribute(IlvStringAttribute source)
source - the object to be copied.
public IlvStringAttribute(IlvInputStream stream)
throws IlvReadFileException
IlvStringAttribute from an
IlvInputStream.
stream - the input stream.
IlvReadFileException - if format is not correct.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvFeatureAttributestream - The output stream
IOException - thrown when an exception occurs during
the write operation for this object.public void setChars(char[] chars)
chars - the new array of chars.setString(java.lang.String)public void setString(String string)
string - the string to be used.setChars(char[])public String getString()
public String toString()
toString in class Objectpublic IlvFeatureAttribute copy()
copy in class IlvFeatureAttribute
public static String StringValue(IlvAttributeProperty attributes,
String name)
String value of the
IlvStringAttribute whose name is specified.
attributes - The IlvAttributeProperty that stores the
attributes.name - The name of the attribute.
IlvStringAttribute as a
String, or null if the attribute is
null.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||