it.negro.jajb.binding
Class JAJBBindResolver

java.lang.Object
  extended by it.negro.jajb.binding.JAJBBindResolver
All Implemented Interfaces:
it.dangelo.javabinding.mappings.BindResolver

public class JAJBBindResolver
extends java.lang.Object
implements it.dangelo.javabinding.mappings.BindResolver

This is the it.dangelo.javabinding.mappings.BindResolver implementation for JAJB. It is used during unmarshall operation

Author:
Gabriele Negro

Constructor Summary
JAJBBindResolver()
           
 
Method Summary
 int getLength(java.lang.Object arg0)
          Returns met arg0 JSONArray length during unmarshall operation.
 java.lang.Object getValue(java.lang.Object arg0, int arg1)
          Return the value of the attribute at arg1 index into arg0 that should be a JSONArray
 java.lang.Object getValue(java.lang.Object arg0, java.lang.String arg1)
          Returns the value of the attribute named "arg1" into arg0 that should be a JSONObject.
 boolean isArray(java.lang.Object arg0)
          Says if met arg0 object during unmarshall is a JSONArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAJBBindResolver

public JAJBBindResolver()
Method Detail

getLength

public int getLength(java.lang.Object arg0)
              throws java.lang.Exception
Returns met arg0 JSONArray length during unmarshall operation.

Specified by:
getLength in interface it.dangelo.javabinding.mappings.BindResolver
Throws:
java.lang.Exception

getValue

public java.lang.Object getValue(java.lang.Object arg0,
                                 java.lang.String arg1)
                          throws java.lang.Exception
Returns the value of the attribute named "arg1" into arg0 that should be a JSONObject.

Specified by:
getValue in interface it.dangelo.javabinding.mappings.BindResolver
Throws:
java.lang.Exception

getValue

public java.lang.Object getValue(java.lang.Object arg0,
                                 int arg1)
                          throws java.lang.Exception
Return the value of the attribute at arg1 index into arg0 that should be a JSONArray

Specified by:
getValue in interface it.dangelo.javabinding.mappings.BindResolver
Throws:
java.lang.Exception

isArray

public boolean isArray(java.lang.Object arg0)
                throws java.lang.Exception
Says if met arg0 object during unmarshall is a JSONArray

Specified by:
isArray in interface it.dangelo.javabinding.mappings.BindResolver
Throws:
java.lang.Exception


Copyright © 2008. All Rights Reserved.