@AntTask(value="om-read-value") public static class ObjectMapperTask.ReadValue extends ObjectMapperTask
Task
to invoke
ObjectMapper.readValue(File,Class)
.
<om-read-value classname="String" classpathref="Reference" collection="String" description="String" file="File" registermodules="boolean" taskname="String" type="String">
<classpath .../>
<configure if="String" name="String" unless="String">... text ...</configure>
</om-read-value>
ObjectMapperTask.ReadValue, ObjectMapperTask.Setting
mapper
description, location, project
Modifier | Constructor and Description |
---|---|
|
ReadValue()
No-argument constructor.
|
protected |
ReadValue(ObjectMapper mapper)
Protected constructor to allow subclasses to specify the
ObjectMapper . |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Default implementation for
Task subclasses. |
protected JavaType |
getJavaType()
|
addConfiguredConfigure, init
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAntTaskName
log, log, log, log, log, log, log, log, log, log, log
createClasspath, delegate, delegate, getClassForName, getClassLoader, setClassname, setClasspathref
configure
public ReadValue()
protected ReadValue(ObjectMapper mapper)
ObjectMapper
.mapper
- The ObjectMapper
.protected JavaType getJavaType() throws Exception
public void execute() throws BuildException
AnnotatedAntTask
Task
subclasses. Check attributes
annotated with AntTaskAttributeConstraint
.
See AnnotatedAntTaskConfigurationChecker
.execute
in interface AnnotatedAntTask
execute
in class ObjectMapperTask
BuildException
- If a
AntTaskAttributeConstraint.Checker
fails.Copyright © 2015–2020 Allen D. Ball. All rights reserved.