Package com.inductiveautomation.rm.base
Class RMSchemaMaker
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMSchemaMaker
 
- 
 public class RMSchemaMaker extends java.lang.ObjectThis class makes a schema from an object graph, given a top level object.
- 
- 
Constructor SummaryConstructors Constructor Description RMSchemaMaker()Creates a new schema maker.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDegreeOfSeparation()Returns the degree of separation.booleangetIncludeFields()Returns whether to include fields.voidgetProperty(java.lang.Object aValue, java.lang.Class aClass, java.lang.String aKey, int aDepth, Entity anEntity)Configures a property for a property value.SchemagetSchema(RXElement anElement)Creates and returns a schema for a given xml element tree.SchemagetSchema(java.lang.Object anObject, java.lang.String aName, int aDegreeOfSeparation)This code returns a schema for a given object graph of Java primitives (Map, List, String, Number, Date).booleangetUseGetAndIsMethodsOnly()Returns whether to only use getX/isX accessor methods (as opposed to any method returning a value).voidignoreClass(java.lang.Class aClass)Tells schema maker to ignore any members encountered with the given class.voidignoreClass(java.lang.String aClassName)Tells schema maker to ignore any members encountered with the given class (by class name).voidignoreMember(java.lang.Class aClass, java.lang.String aMemberName)Tells schema maker to ignore members for a particular class.voidignoreMember(java.lang.String aName)Tells schema maker to ignore any members encountered with the given name.voidignoreMember(java.lang.String aClassName, java.lang.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).
 
- 
- 
- 
Method Detail- 
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.
 - 
ignoreClasspublic void ignoreClass(java.lang.Class aClass) Tells schema maker to ignore any members encountered with the given class.
 - 
ignoreClasspublic void ignoreClass(java.lang.String aClassName) Tells schema maker to ignore any members encountered with the given class (by class name).
 - 
ignoreMemberpublic void ignoreMember(java.lang.String aName) Tells schema maker to ignore any members encountered with the given name.
 - 
ignoreMemberpublic void ignoreMember(java.lang.Class aClass, java.lang.String aMemberName)Tells schema maker to ignore members for a particular class.
 - 
ignoreMemberpublic void ignoreMember(java.lang.String aClassName, java.lang.String aMemberName)Tells schema maker to ignore members for a particular class name.
 - 
getSchemapublic Schema getSchema(java.lang.Object anObject, java.lang.String aName, int aDegreeOfSeparation) This code returns a schema for a given object graph of Java primitives (Map, List, String, Number, Date).
 - 
getPropertypublic void getProperty(java.lang.Object aValue, java.lang.Class aClass, java.lang.String aKey, int aDepth, Entity anEntity)Configures a property for a property value.
 
- 
 
-