@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.Settingmapperdescription, 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, initbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAntTaskNamelog, log, log, log, log, log, log, log, log, log, logcreateClasspath, delegate, delegate, getClassForName, getClassLoader, setClassname, setClasspathrefconfigurepublic ReadValue()
protected ReadValue(ObjectMapper mapper)
ObjectMapper.mapper - The ObjectMapper.protected JavaType getJavaType() throws Exception
public void execute() throws BuildException
AnnotatedAntTaskTask subclasses. Check attributes
annotated with AntTaskAttributeConstraint.
See AnnotatedAntTaskConfigurationChecker.execute in interface AnnotatedAntTaskexecute in class ObjectMapperTaskBuildException - If a
AntTaskAttributeConstraint.Checker
fails.Copyright © 2015–2020 Allen D. Ball. All rights reserved.