|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.extractor.AbstractExtractor
com.tangosol.util.extractor.AbstractCompositeExtractor
com.tangosol.util.extractor.ChainedExtractor
public class ChainedExtractor
Composite ValueExtractor implementation based on an array of extractors. The extractors in the array are applied sequentially left-to-right, so a result of a previous extractor serves as a target object for a next one.
Field Summary |
---|
Fields inherited from class com.tangosol.util.extractor.AbstractCompositeExtractor |
---|
m_aExtractor |
Constructor Summary | |
---|---|
ChainedExtractor()
Default constructor (necessary for the ExternalizableLite interface). |
|
ChainedExtractor(String sName)
Construct a ChainedExtractor for a specified method name sequence. |
|
ChainedExtractor(ValueExtractor[] aExtractor)
Construct a ChainedExtractor based on a specified ValueExractor array. |
|
ChainedExtractor(ValueExtractor extractor1,
ValueExtractor extractor2)
Construct a ChainedExtractor based on two extractors. |
Method Summary | |
---|---|
static ValueExtractor[] |
createExtractors(String sName)
Parse a dot-delimited sequence of method names and instantiate a corresponding array of ReflectionExtractor objects. |
Object |
extract(Object oTarget)
Extract the value from the passed object. |
Methods inherited from class com.tangosol.util.extractor.AbstractCompositeExtractor |
---|
equals, getExtractors, hashCode, readExternal, readExternal, toString, writeExternal, writeExternal |
Methods inherited from class com.tangosol.util.extractor.AbstractExtractor |
---|
compare, compareEntries |
Constructor Detail |
---|
public ChainedExtractor()
public ChainedExtractor(ValueExtractor[] aExtractor)
aExtractor
- the ValueExtractor arraypublic ChainedExtractor(ValueExtractor extractor1, ValueExtractor extractor2)
extractor1
- the ValueExtractorextractor2
- the ValueExtractorpublic ChainedExtractor(String sName)
sName
- a dot-delimited sequence of method names which results
in a ChainedExtractor that is based on an array of
corresponding ReflectionExtractor
objectsMethod Detail |
---|
public Object extract(Object oTarget)
extract
in interface ValueExtractor
extract
in class AbstractExtractor
oTarget
- an Object to retrieve the value from
public static ValueExtractor[] createExtractors(String sName)
ReflectionExtractor
objects.
sName
- a dot-delimited sequence of method names
ReflectionExtractor
objects
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |