public class AggregateModelAdaptor extends Object implements ModelAdaptor<Aggregate>
ST.addAggr(java.lang.String, java.lang.Object...)
("structname.{prop1, prop2}", ...);
.Constructor and Description |
---|
AggregateModelAdaptor() |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(Interpreter interp,
ST self,
Aggregate o,
Object property,
String propertyName)
Lookup property name in
o and return its value. |
public Object getProperty(Interpreter interp, ST self, Aggregate o, Object property, String propertyName) throws STNoSuchPropertyException
ModelAdaptor
o
and return its value.
property
is normally a String
but doesn't have to be.
E.g., if o
is Map
, property
could be
any key type. If we need to convert to String
, then it's done by
ST
and passed in here.
getProperty
in interface ModelAdaptor<Aggregate>
STNoSuchPropertyException
Copyright © 2023. All rights reserved.