org.mule.devkit.model.code.fmt
Class PropertyFile

java.lang.Object
  extended by org.mule.devkit.model.code.ResourceFile
      extended by org.mule.devkit.model.code.fmt.PropertyFile

public class PropertyFile
extends ResourceFile

A property file.


Constructor Summary
PropertyFile(String name)
           
 
Method Summary
 void add(String key, String value)
          Adds key/value pair into the property file.
 void build(OutputStream out)
          called by Package to produce the file image.
 
Methods inherited from class org.mule.devkit.model.code.ResourceFile
isResource, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFile

public PropertyFile(String name)
Method Detail

add

public void add(String key,
                String value)
Adds key/value pair into the property file. If you call this method twice with the same key, the old one is overriden by the new one.


build

public void build(OutputStream out)
           throws IOException
Description copied from class: ResourceFile
called by Package to produce the file image.

Specified by:
build in class ResourceFile
Throws:
IOException


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