|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oms3.ComponentAccess
public class ComponentAccess
Component Access. This class manages reflective access to components internals for the purpose of teir integration into a model.
Constructor Summary | |
---|---|
ComponentAccess(java.lang.Object cmd)
|
Method Summary | |
---|---|
static boolean |
adjustOutputPath(java.io.File outputDir,
java.lang.Object comp,
java.util.logging.Logger log)
Adjust the output path. |
static void |
callAnnotated(java.lang.Object o,
java.lang.Class<? extends java.lang.annotation.Annotation> ann,
boolean lazy)
Call an method by Annotation. |
static java.lang.Object |
conv(java.lang.Object inpValue,
java.lang.Class<?> fieldType)
|
static java.util.Properties |
createDefault(java.lang.Object comp)
Create a default parameter set |
java.lang.Object |
getComponent()
Get the component that is wrapped in this access proxy |
static java.lang.Class |
infoClass(java.lang.Class cmp)
Get the info class for a component object |
Access |
input(java.lang.String field)
Get a single input field. |
java.util.Collection<Access> |
inputs()
Get the all the inputs. |
Access |
output(java.lang.String field)
get a single output field. |
java.util.Collection<Access> |
outputs()
Get the all the outputs. |
static boolean |
setInputData(java.util.Map<java.lang.String,java.lang.Object> inp,
java.lang.Object comp,
java.util.logging.Logger log)
Set the input data as map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentAccess(java.lang.Object cmd)
Method Detail |
---|
public java.lang.Object getComponent()
public java.util.Collection<Access> inputs()
public java.util.Collection<Access> outputs()
public Access input(java.lang.String field)
field
- the name of the field
public Access output(java.lang.String field)
field
-
public static void callAnnotated(java.lang.Object o, java.lang.Class<? extends java.lang.annotation.Annotation> ann, boolean lazy)
o
- the oject to call.ann
- the annotationlazy
- if true, the a missing annotation is OK. if false
the annotation has to be present or a Runtime exception is thrown.public static final java.lang.Class infoClass(java.lang.Class cmp)
cmp
-
public static boolean adjustOutputPath(java.io.File outputDir, java.lang.Object comp, java.util.logging.Logger log)
outputDir
- comp
- log
-
public static java.util.Properties createDefault(java.lang.Object comp)
comp
-
public static java.lang.Object conv(java.lang.Object inpValue, java.lang.Class<?> fieldType)
public static boolean setInputData(java.util.Map<java.lang.String,java.lang.Object> inp, java.lang.Object comp, java.util.logging.Logger log) throws java.io.IOException
inp
- comp
- log
-
java.io.IOException
|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |