public class IlvStringAttribute extends IlvFeatureAttribute
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 . |
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.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvFeatureAttribute
stream
- The output streamIOException
- 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()
public 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
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.