com.googlecode.icegem.serialization.codegen
Class XClass

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

public class XClass
extends java.lang.Object

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

Author:
igolovach

Constructor Summary
XClass(java.lang.Class<?> clazz)
           
 
Method Summary
 byte getBeanVersion()
           
 java.lang.String getName()
           
 java.util.List<XProperty> getOrderedProperties()
          Returns properties in "natural" order, i.e.
 java.lang.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(java.lang.Class<?> clazz)
Method Detail

getType

public java.lang.Class<?> getType()

getOrderedProperties

public java.util.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 java.lang.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.