org.apache.shindig.protocol.conversion.xstream
Class InterfaceFieldAliasMapping

java.lang.Object
  extended by org.apache.shindig.protocol.conversion.xstream.InterfaceFieldAliasMapping

public class InterfaceFieldAliasMapping
extends Object

Maps of Interfaces to Aliases used by BeanXStreamConverter


Constructor Summary
InterfaceFieldAliasMapping(String alias, Class<?> type, String fieldName)
           
InterfaceFieldAliasMapping(String alias, Class<?> type, String fieldName, String parent)
           
 
Method Summary
 String getAlias()
           
 String getFieldName()
           
 String getParent()
           
 Class<?> getType()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterfaceFieldAliasMapping

public InterfaceFieldAliasMapping(String alias,
                                  Class<?> type,
                                  String fieldName)
Parameters:
alias - the name of the element to be used in the xml
type - the type containing the field
fieldName - the field name.

InterfaceFieldAliasMapping

public InterfaceFieldAliasMapping(String alias,
                                  Class<?> type,
                                  String fieldName,
                                  String parent)
Parameters:
alias - the name of the element to be used in the xml
type - the type containing the field
fieldName - the field name.
parent - the parent element
Method Detail

getType

public Class<?> getType()
Returns:

getAlias

public String getAlias()
Returns:

getFieldName

public String getFieldName()
Returns:

getParent

public String getParent()
Returns:
the parent

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2007-2012. All Rights Reserved.