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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the degree of separation.boolean
Returns whether to include fields.void
getProperty
(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).boolean
Returns whether to only use getX/isX accessor methods (as opposed to any method returning a value).void
ignoreClass
(Class aClass) Tells schema maker to ignore any members encountered with the given class.void
ignoreClass
(String aClassName) Tells schema maker to ignore any members encountered with the given class (by class name).void
ignoreMember
(Class aClass, String aMemberName) Tells schema maker to ignore members for a particular class.void
ignoreMember
(String aName) Tells schema maker to ignore any members encountered with the given name.void
ignoreMember
(String aClassName, String aMemberName) Tells schema maker to ignore members for a particular class name.void
setIncludeFields
(boolean aFlag) Sets whether to include fields.void
setUseGetAndIsMethodsOnly
(boolean aFlag) Sets whether to only use getX/isX accessor methods (as opposed to any method returning a value).
-
Constructor Details
-
RMSchemaMaker
public RMSchemaMaker()Creates a new schema maker.
-
-
Method Details
-
getDegreeOfSeparation
public int getDegreeOfSeparation()Returns the degree of separation. -
getUseGetAndIsMethodsOnly
public boolean getUseGetAndIsMethodsOnly()Returns whether to only use getX/isX accessor methods (as opposed to any method returning a value). -
setUseGetAndIsMethodsOnly
public void setUseGetAndIsMethodsOnly(boolean aFlag) Sets whether to only use getX/isX accessor methods (as opposed to any method returning a value). -
getIncludeFields
public boolean getIncludeFields()Returns whether to include fields. -
setIncludeFields
public void setIncludeFields(boolean aFlag) Sets whether to include fields. -
ignoreClass
Tells schema maker to ignore any members encountered with the given class. -
ignoreClass
Tells schema maker to ignore any members encountered with the given class (by class name). -
ignoreMember
Tells schema maker to ignore any members encountered with the given name. -
ignoreMember
Tells schema maker to ignore members for a particular class. -
ignoreMember
Tells schema maker to ignore members for a particular class name. -
getSchema
This code returns a schema for a given object graph of Java primitives (Map, List, String, Number, Date). -
getProperty
Configures a property for a property value. -
getSchema
Creates and returns a schema for a given xml element tree.
-