Package com.inductiveautomation.rm.base
Class RMSchemaMaker
java.lang.Object
com.inductiveautomation.rm.base.RMSchemaMaker
This class makes a schema from an object graph, given a top level object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the degree of separation.booleanReturns whether to include fields.voidgetProperty(Object aValue, Class aClass, String aKey, int aDepth, Entity anEntity) Configures a property for a property value.Creates and returns a schema for a given xml element tree.This code returns a schema for a given object graph of Java primitives (Map, List, String, Number, Date).booleanReturns whether to only use getX/isX accessor methods (as opposed to any method returning a value).voidignoreClass(Class aClass) Tells schema maker to ignore any members encountered with the given class.voidignoreClass(String aClassName) Tells schema maker to ignore any members encountered with the given class (by class name).voidignoreMember(Class aClass, String aMemberName) Tells schema maker to ignore members for a particular class.voidignoreMember(String aName) Tells schema maker to ignore any members encountered with the given name.voidignoreMember(String aClassName, String aMemberName) Tells schema maker to ignore members for a particular class name.voidsetIncludeFields(boolean aFlag) Sets whether to include fields.voidsetUseGetAndIsMethodsOnly(boolean aFlag) Sets whether to only use getX/isX accessor methods (as opposed to any method returning a value).
- 
Constructor Details- 
RMSchemaMakerpublic RMSchemaMaker()Creates a new schema maker.
 
- 
- 
Method Details- 
getDegreeOfSeparationpublic int getDegreeOfSeparation()Returns the degree of separation.
- 
getUseGetAndIsMethodsOnlypublic boolean getUseGetAndIsMethodsOnly()Returns whether to only use getX/isX accessor methods (as opposed to any method returning a value).
- 
setUseGetAndIsMethodsOnlypublic void setUseGetAndIsMethodsOnly(boolean aFlag) Sets whether to only use getX/isX accessor methods (as opposed to any method returning a value).
- 
getIncludeFieldspublic boolean getIncludeFields()Returns whether to include fields.
- 
setIncludeFieldspublic void setIncludeFields(boolean aFlag) Sets whether to include fields.
- 
ignoreClassTells schema maker to ignore any members encountered with the given class.
- 
ignoreClassTells schema maker to ignore any members encountered with the given class (by class name).
- 
ignoreMemberTells schema maker to ignore any members encountered with the given name.
- 
ignoreMemberTells schema maker to ignore members for a particular class.
- 
ignoreMemberTells schema maker to ignore members for a particular class name.
- 
getSchemaThis code returns a schema for a given object graph of Java primitives (Map, List, String, Number, Date).
- 
getPropertyConfigures a property for a property value.
- 
getSchemaCreates and returns a schema for a given xml element tree.
 
-