com.googlecode.icegem.serialization.codegen
Class XClass
java.lang.Object
com.googlecode.icegem.serialization.codegen.XClass
public class XClass
- extends Object
Wrapper class for java.lang.Class + useful methods for code generation
- Author:
- igolovach
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XClass
public XClass(Class<?> clazz)
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.