Package org.oddjob.arooa.types
Class ImportType
java.lang.Object
org.oddjob.arooa.types.ImportType
- All Implemented Interfaces:
ArooaValue,ArooaSessionAware
- Author:
- rob
Description
Import XML which is processed as if it's in-line.Example
Using import for a file list. The variables pathA and pathB are identical.
<oddjob>
<job>
<variables id="vars">
<pathA>
<import resource="org/oddjob/arooa/types/ImportExampleImport.xml"/>
</pathA>
<pathB>
<files>
<list>
<file file="a.jar"/>
<file file="b.jar"/>
<file file="c.jar"/>
</list>
</files>
</pathB>
</variables>
</job>
</oddjob>
The imported file is:
<files>
<list>
<file file="a.jar"/>
<file file="b.jar"/>
<file file="c.jar"/>
</list>
</files>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()getInput()getXml()voidsetArooaSession(ArooaSession session) Accept the current Arooa Session.voidvoidsetInput(InputStream input) voidsetResource(String resource) voidtoObject()
-
Field Details
-
ELEMENT
-
-
Constructor Details
-
ImportType
public ImportType()
-
-
Method Details
-
setArooaSession
Description copied from interface:ArooaSessionAwareAccept the current Arooa Session.- Specified by:
setArooaSessionin interfaceArooaSessionAware- Parameters:
session- The Arooa Session. Never null.
-
toObject
- Throws:
IOException
-
getResource
-
setResource
- Reference Property:
- resource
- Required:
- No.
Description
A resource file on the classpath. -
getFile
-
setFile
- Reference Property:
- file
- Required:
- No.
Description
A file. -
getInput
-
setInput
- Reference Property:
- input
- Required:
- No.
Description
An input stream. -
getXml
-
setXml
- Reference Property:
- xml
- Required:
- No.
Description
XML as text.
-