org.w3c.jigsaw.ssi
Class SegmentArrayAttribute
java.lang.Object
org.w3c.tools.resources.Attribute
org.w3c.tools.resources.ArrayAttribute
org.w3c.jigsaw.ssi.SegmentArrayAttribute
- All Implemented Interfaces:
- java.io.Serializable
public class SegmentArrayAttribute
- extends ArrayAttribute
Attribute used to make the document segment information persistent.
- See Also:
- Serialized Form
Method Summary |
boolean |
checkValue(java.lang.Object value)
Is the provided object a suitable value for this attribute ?
If so, store it into the given store. |
java.lang.String[] |
pickle(java.lang.Object obj)
Pickle an attribute array into a String array. |
java.lang.String |
stringify(java.lang.Object value)
|
java.lang.Object |
unpickle(java.lang.String[] array)
Unpickle an attribute array from a string array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SegmentArrayAttribute
public SegmentArrayAttribute(java.lang.String name,
Segment[] def,
int flags)
SegmentArrayAttribute
public SegmentArrayAttribute()
checkValue
public boolean checkValue(java.lang.Object value)
- Description copied from class:
Attribute
- Is the provided object a suitable value for this attribute ?
If so, store it into the given store.
- Specified by:
checkValue
in class Attribute
- Parameters:
value
- The value to check.
- Returns:
- A boolean true if this object can be used
as a value for this attribute.
unpickle
public java.lang.Object unpickle(java.lang.String[] array)
- Unpickle an attribute array from a string array.
- Specified by:
unpickle
in class ArrayAttribute
- Parameters:
array
- the String array
- Returns:
- a Object array
pickle
public java.lang.String[] pickle(java.lang.Object obj)
- Pickle an attribute array into a String array.
- Specified by:
pickle
in class ArrayAttribute
- Parameters:
array
- the attribute array
- Returns:
- a String array
stringify
public java.lang.String stringify(java.lang.Object value)
- Overrides:
stringify
in class ArrayAttribute