com.googlecode.icegem.serialization.codegen
Class XClass

java.lang.Object
  extended by com.googlecode.icegem.serialization.codegen.XClass

public class XClass
extends Object

Wrapper class for java.lang.Class + useful methods for code generation

Author:
igolovach

Constructor Summary
XClass(Class<?> clazz)
           
 
Method Summary
 byte getBeanVersion()
           
 String getName()
           
 List<XProperty> getOrderedProperties()
          Returns properties in "natural" order, i.e.
 Class<?> getType()
           
 byte getVersionHistoryLength()
           
 short getVersionModelHashCode(int version)
          Returns a hash code of class model for specified bean version based on fields that this model contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XClass

public XClass(Class<?> clazz)
Method Detail

getType

public Class<?> getType()

getOrderedProperties

public List<XProperty> getOrderedProperties()
Returns properties in "natural" order, i.e. "ORDER BY VERSION, DECLARING CLASS, NAME"

Returns:

getBeanVersion

public byte getBeanVersion()

getVersionHistoryLength

public byte getVersionHistoryLength()

getName

public String getName()

getVersionModelHashCode

public short getVersionModelHashCode(int version)
Returns a hash code of class model for specified bean version based on fields that this model contains.

Parameters:
version - bean version to get metadata hashcode.
Returns:
the hashcode (16bits)


Copyright © 2011. All Rights Reserved.