public class RequestHelper extends Object
Constructor and Description |
---|
RequestHelper() |
Modifier and Type | Method and Description |
---|---|
static <E,O> E |
mapObjects(E output,
O input)
Maps two objects by copying 'get' and 'is' methods to matching 'set'
methods.
|
static <R extends Request<?>,O extends BroadWorksObject> |
mapObjectToRequest(R request,
O object)
Method to map the fields of a BroadWorksObject onto a given request.
|
public static <E,O> E mapObjects(E output, O input) throws HelperException
output
- The returned object whose fields are modified.input
- The input object to copy fields from.HelperException
public static <R extends Request<?>,O extends BroadWorksObject> R mapObjectToRequest(R request, O object) throws HelperException
request
- The the request to map the fields onto.object
- The object to retrieve available fields.HelperException
Copyright © 2016 ECG, Inc. All rights reserved.