public class StackMappingWrapper extends Object implements StackMapping, RippleValue
RippleValue.Type| Constructor and Description |
|---|
StackMappingWrapper(StackMapping wrapped,
ModelConnection mc) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(RippleList arg,
Sink<RippleList> solutions,
ModelConnection mc)
Applies the mapping to a single argument,
producing zero or more solutions and passing them into a downstream
Sink |
int |
arity() |
StackMapping |
getInverse() |
StackMapping |
getMapping() |
RippleValue.Type |
getType() |
boolean |
isTransparent() |
void |
printTo(RipplePrintStream p) |
RDFValue |
toRDF(ModelConnection mc) |
public StackMappingWrapper(StackMapping wrapped, ModelConnection mc) throws RippleException
RippleExceptionpublic int arity()
arity in interface StackMappingpublic boolean isTransparent()
isTransparent in interface Mapping<RippleList,RippleList,ModelConnection>public void apply(RippleList arg, Sink<RippleList> solutions, ModelConnection mc) throws RippleException
MappingSinkapply in interface Mapping<RippleList,RippleList,ModelConnection>arg - the argument data itemsolutions - the solutions the argument is mapped tomc - a helper object providing context (may be null)RippleException - if a data handling error occurspublic StackMapping getInverse() throws RippleException
getInverse in interface StackMappingStackMapping exactly inverse to this mapping,
or a NullMapping if no such mapping can be defined.RippleException - if the inverse cannot be determinedpublic RDFValue toRDF(ModelConnection mc) throws RippleException
toRDF in interface RippleValueRippleExceptionpublic StackMapping getMapping()
getMapping in interface RippleValuepublic void printTo(RipplePrintStream p) throws RippleException
printTo in interface RippleValueRippleExceptionpublic RippleValue.Type getType()
getType in interface RippleValueCopyright © 2007-2012 fortytwo.net. All Rights Reserved.