@PersistantProperties(properties=@PersistantProperty(property="separator",defaultValue=";")) public class MSplitAccessor extends AbstractReadSourceAccessor
IReadAccessor.Standalone
Modifier and Type | Field and Description |
---|---|
static String |
SPLIT_ID |
internalExpectedGenericType, internalExpectedType, source
Constructor and Description |
---|
MSplitAccessor() |
MSplitAccessor(IReadAccessor source) |
MSplitAccessor(IReadAccessor source,
String separator) |
Modifier and Type | Method and Description |
---|---|
<G,C extends Collection<G>> |
compileCollection(ICompilationContext ctxt,
Class<C> expectedType,
Class<G> expectedGenericType)
Implementation to handle case when expected result is a Collection.
|
void |
compileValue(ICompilationContext ctxt,
Class<?> expectedType)
Implementation to handle case when expected result is a single value.
|
boolean |
equals(Object o) |
Class<?> |
getGenericCollectionType(IContext ctxt)
Returns requested generic type if any, otherwise the source's generic type if any.
|
String |
getImplementationId()
Unique addon implementation ID.
|
String |
getSeparator() |
Class<?> |
getType(IContext ctxt)
Returns requested type if any, otherwise the source's type if any.
|
int |
hashCode() |
protected boolean |
parseCollections()
False
|
void |
setSeparator(String separator) |
Object |
specificHandleValue(IExecutionContext ctxt,
Object value)
Override this to apply specific transformation on value read from source accessor.
|
void |
toString(OuterWithLevel outer)
Method used to send String representation of the current object to the
OuterWithLevel . |
clone, getEstimatedReadCost, getInternalCacheIdentifier, getSource, handleValue, internalGet, isCacheUsed, isConstantValue, isInternalCacheIdentifierNeeded, isShouldIterate, resetCachedData, setInternalCacheIdentifier, setSource, wasRegistered
castToExpected, compileRead, compileRead, compileRead, compileRead, get, getGenericTypes, isShouldBeWrappedToConstantValue, isShouldNotCache
optimize, toString
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String SPLIT_ID
public MSplitAccessor()
public MSplitAccessor(IReadAccessor source)
public MSplitAccessor(IReadAccessor source, String separator)
public void compileValue(ICompilationContext ctxt, Class<?> expectedType) throws MRuleValidationException
AbstractReadAccessor
compileValue
in class AbstractReadAccessor
MRuleValidationException
public <G,C extends Collection<G>> void compileCollection(ICompilationContext ctxt, Class<C> expectedType, Class<G> expectedGenericType) throws MRuleValidationException
AbstractReadAccessor
compileCollection
in class AbstractReadAccessor
MRuleValidationException
protected boolean parseCollections()
parseCollections
in class AbstractReadSourceAccessor
public Object specificHandleValue(IExecutionContext ctxt, Object value) throws MAccessorException
AbstractReadSourceAccessor
specificHandleValue
in class AbstractReadSourceAccessor
MAccessorException
public Class<?> getType(IContext ctxt) throws MAccessorException
getType
in interface IAccessor
getType
in class AbstractReadSourceAccessor
MAccessorException
public Class<?> getGenericCollectionType(IContext ctxt) throws MAccessorException
getGenericCollectionType
in interface IAccessor
getGenericCollectionType
in class AbstractReadSourceAccessor
MAccessorException
public String getImplementationId()
IAddon
public boolean equals(Object o)
equals
in class AbstractReadSourceAccessor
public int hashCode()
hashCode
in class AbstractReadSourceAccessor
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.toString
in interface Outable
toString
in class AbstractReadSourceAccessor
IOException
public String getSeparator()
public void setSeparator(String separator)