    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.resources.StringArrayAttribute

    java.lang.Object
       |
       +----w3c.jigsaw.resources.Attribute
               |
               +----w3c.jigsaw.resources.StringArrayAttribute

public class StringArrayAttribute
extends Attribute

The generic description of an StringArrayAttribute.

##

StringArrayAttribute(String, String[], int)

##

checkValue(Object)
  Is the given object a valid StringArrayAttribute value ?
pickle(DataOutputStream, Object)
  Pickle a String array to the given output stream.
stringify(Object)
  Turn a StringArray attribute into a String.
unpickle(DataInputStream)
  Unpickle an String array from the given input stream.

##

StringArrayAttribute

      public StringArrayAttribute(String name,
                                  String def[],
                                  int flags)

##

stringify

      public String stringify(Object value)

  Turn a StringArray attribute into a String. We use the normal property convention, which is to separate each item with a |.
  Returns:
    A String based encoding for that value.
  Overrides:
    stringify in class Attribute

checkValue

      public boolean checkValue(Object obj)

  Is the given object a valid StringArrayAttribute value ?
  Parameters:
    obj - The object to test.
  Returns:
    A boolean true if okay.
  Overrides:
    checkValue in class Attribute

pickle

      public void pickle(DataOutputStream out,
                         Object sa) throws IOException

  Pickle a String array to the given output stream.
  Parameters:
    out - The output stream to pickle to.
    obj - The object to pickle.
  Throws: IOException
    If some IO error occured.
  Overrides:
    pickle in class Attribute

unpickle

      public Object unpickle(DataInputStream in) throws IOException

  Unpickle an String array from the given input stream.
  Parameters:
    in - The input stream to unpickle from.
  Returns:
    An instance of String[].
  Throws: IOException
    If some IO error occured.
  Overrides:
    unpickle in class Attribute

    All Packages  Class Hierarchy  This Package  Previous  Next  Index