public interface IStructView
Map
) where keys are String
s, and provides easy access to its content.Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.String name)
Returns the value of the field specified by its name.
|
<T> T |
get(java.lang.String[] path)
Returns the value for the field specified by its path.
|
java.util.Map<java.lang.String,java.lang.Object> |
getStruct()
Returns the source structure.
|
<T> T get(java.lang.String name)
T
- (expected) type of the valuename
- name of the field<T> T get(java.lang.String[] path)
This method returns a value acquired in n
steps (where n
is the number of path elements).
The first step is executed on this
, and the step result is the value returned by get(String)
for the first path element.
The result of the i
th step is the value returned by get(String)
called on the result of the i-1
th step which must be of type IStructView
.
The return value of the method is the result of the n
th step.
If the result of any steps is null
, then null
is returned.
T
- (expected) type of the valuepath
- path to the fieldjava.util.Map<java.lang.String,java.lang.Object> getStruct()
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.