ref_send API 2.17
defensive programming in Java

org.waterken.syntax
Class Syntax

java.lang.Object
  extended by org.joe_e.Struct
      extended by org.waterken.syntax.Syntax
All Implemented Interfaces:
java.io.Serializable, Immutable, Powerless, Selfless, Record

public class Syntax
extends Struct
implements Powerless, Record, java.io.Serializable

A serialization syntax.

See Also:
Serialized Form

Field Summary
 Deserializer deserializer
          deserializer
 java.lang.String ext
          file extension
 Serializer serializer
          serializer
 
Constructor Summary
Syntax(java.lang.String ext, Serializer serializer, Deserializer deserializer)
          Constructs an instance.
 
Method Summary
static java.lang.Object defaultValue(java.lang.reflect.Type required)
          Gets the default value of a specified type.
static java.lang.reflect.Constructor<?> deserializer(java.lang.Class<?> type)
          Finds a corresponding deserializer.
 
Methods inherited from class org.joe_e.Struct
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.joe_e.Selfless
hashCode
 

Field Detail

ext

public final java.lang.String ext
file extension


serializer

public final Serializer serializer
serializer


deserializer

public final Deserializer deserializer
deserializer

Constructor Detail

Syntax

public Syntax(java.lang.String ext,
              Serializer serializer,
              Deserializer deserializer)
Constructs an instance.

Parameters:
ext - ext
serializer - serializer
deserializer - deserializer
Method Detail

deserializer

public static java.lang.reflect.Constructor<?> deserializer(java.lang.Class<?> type)
Finds a corresponding deserializer.

Parameters:
type - type to construct
Returns:
constructor, or null if none

defaultValue

public static java.lang.Object defaultValue(java.lang.reflect.Type required)
Gets the default value of a specified type.

Parameters:
required - required type
Returns:
default value

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.