org.mule.devkit.model.code
Class ResourceFile

java.lang.Object
  extended by org.mule.devkit.model.code.ResourceFile
Direct Known Subclasses:
BinaryFile, PropertyFile, SerializedObject, StaticFile, StaticJavaFile, TextFile

public abstract class ResourceFile
extends Object

Represents a resource file in the application-specific file format.


Constructor Summary
protected ResourceFile(String name)
           
 
Method Summary
protected abstract  void build(OutputStream os)
          called by Package to produce the file image.
protected  boolean isResource()
          Returns true if this file should be generated into the directory that the resource files go into.
 String name()
          Gets the name of this property file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFile

protected ResourceFile(String name)
Method Detail

name

public String name()
Gets the name of this property file


isResource

protected boolean isResource()
Returns true if this file should be generated into the directory that the resource files go into.

Returns false if this file should be generated into the directory where other source files go.


build

protected abstract void build(OutputStream os)
                       throws IOException
called by Package to produce the file image.

Throws:
IOException


Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.