    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.resources.ClassAttribute

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

public class ClassAttribute
extends Attribute

The generic description of an ClassAttribute.

##

ClassAttribute(String, Class, int)

##

checkValue(Object)
  Is the given object a valid ClassAttribute value ?
pickle(DataOutputStream, Object)
  Pickle an integer to the given output stream.
stringify(Object)
  Make a String out of a ClassAttribute value.
unpickle(DataInputStream)
  Unpickle an integer from the given input stream.

##

ClassAttribute

      public ClassAttribute(String name,
                            Class def,
                            int flags)

##

stringify

      public String stringify(Object value)

  Make a String out of a ClassAttribute value. The default `toString` method on classes doesn't work for that purpose, since it will preceed the class name with a class keyword.
  Returns:
    The String name of the class.
  Overrides:
    stringify in class Attribute

checkValue

      public boolean checkValue(Object obj)

  Is the given object a valid ClassAttribute 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 c) throws IOException

  Pickle an integer 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 integer from the given input stream.
  Parameters:
    in - The input stream to unpickle from.
  Returns:
    An instance of Integer.
  Throws: IOException
    If some IO error occured.
  Overrides:
    unpickle in class Attribute

    All Packages  Class Hierarchy  This Package  Previous  Next  Index