jfun.yan.xfire
Class ScopeDeserializer

java.lang.Object
  extended by jfun.yan.xfire.ScopeDeserializer
All Implemented Interfaces:
Deserializer

public class ScopeDeserializer
extends java.lang.Object
implements Deserializer

The Deserializer implementation that converts String to ScopePolicy.

Author:
Ben Yu Feb 2, 2006 6:33:55 PM

Constructor Summary
ScopeDeserializer()
           
 
Method Summary
 java.lang.Object deserialize(java.lang.String str)
           
static ScopePolicy toScopePolicy(java.lang.String policy)
          Convert a policy string to ScopePolicy object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeDeserializer

public ScopeDeserializer()
Method Detail

deserialize

public java.lang.Object deserialize(java.lang.String str)
Specified by:
deserialize in interface Deserializer

toScopePolicy

public static ScopePolicy toScopePolicy(java.lang.String policy)
Convert a policy string to ScopePolicy object.

Parameters:
policy - the policy string.
Returns:
the ScopePolicy object. null if not recognized.