org.w3c.jigsaw.ssi
Class SegmentArrayAttribute

java.lang.Object
  extended by org.w3c.tools.resources.Attribute
      extended by org.w3c.tools.resources.ArrayAttribute
          extended by 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

Field Summary
 
Fields inherited from class org.w3c.tools.resources.Attribute
COMPUTED, DONTSAVE, EDITABLE, flags, MANDATORY, name, type
 
Constructor Summary
SegmentArrayAttribute()
           
SegmentArrayAttribute(java.lang.String name, Segment[] def, int flags)
           
 
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 org.w3c.tools.resources.Attribute
checkFlag, getDefault, getFlag, getName, getType, setFlag, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentArrayAttribute

public SegmentArrayAttribute(java.lang.String name,
                             Segment[] def,
                             int flags)

SegmentArrayAttribute

public SegmentArrayAttribute()
Method Detail

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