|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.ps.PsObjectComposite
org.foray.ps.PsString
public class PsString
Class representing a string PostScript object.
Constructor Summary | |
---|---|
PsString(String value)
Constructor. |
Method Summary | |
---|---|
PsObject |
duplicate()
This is a shallow copy. |
boolean |
equals(Object anObject)
|
PsName |
getTypeName()
Needed for the "type" operator. |
String |
getValue()
Returns this string's value. |
boolean |
isComparable(PsObject object)
Test the comparability of two PSObjects. |
boolean |
isComposite()
The method should be overridden by composite objects. |
boolean |
isExecutable()
Indicates whether this object is executable. |
void |
setExecutable(boolean newExecutable)
Sets the executable status of this name. |
void |
setValue(String newValue)
Sets this string's value. |
int |
size()
Return the size, in characters, of the encapsulated String. |
String |
toString()
|
Methods inherited from class org.foray.ps.PsObjectComposite |
---|
getAccess, setAccess |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PsString(String value)
value
- The value to encapsulate.Method Detail |
---|
public PsObject duplicate()
PsObject
public boolean isComposite()
PsObject
public boolean equals(Object anObject)
equals
in class Object
public boolean isExecutable()
PsObject
public boolean isComparable(PsObject object)
PsObject
object
- The object that should be tested for comparability.
this
is comparable to object
,
false otherwise.public PsName getTypeName()
PsObject
public int size()
public String toString()
toString
in class Object
public String getValue()
public void setValue(String newValue)
newValue
- The new value for this string.public void setExecutable(boolean newExecutable)
newExecutable
- The new executable status of this name. Set to
true to make it executable, set it to false to make it not executable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |