org.mevenide.properties
Class PropertyModel

java.lang.Object
  extended byorg.mevenide.properties.PropertyModel

public class PropertyModel
extends java.lang.Object

Model of properties file.

Author:
Milos Kleint, Gilles Dodinet

Method Summary
 void addElement(Element el)
          Adds an element to the endo of the file/model.
 void addToComment(Comment comment, java.lang.String line)
           
 KeyValuePair findByKey(java.lang.String key)
          based on the key from Properties, will look up an item in the model.
 java.util.List getList()
          returns a copy of the model, is not live.
 int getSize()
           
 boolean insertAt(int index, Element el)
          inserts element at designated position.
 KeyValuePair newKeyPair(java.lang.String key, char separator, java.lang.String value)
           
 void removeElement(Element el)
          removes the element from model.
 void store(java.io.OutputStream stream)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addElement

public void addElement(Element el)
Adds an element to the endo of the file/model.


removeElement

public void removeElement(Element el)
removes the element from model.


getList

public java.util.List getList()
returns a copy of the model, is not live.


getSize

public int getSize()

insertAt

public boolean insertAt(int index,
                        Element el)
inserts element at designated position.


findByKey

public KeyValuePair findByKey(java.lang.String key)
based on the key from Properties, will look up an item in the model.


newKeyPair

public KeyValuePair newKeyPair(java.lang.String key,
                               char separator,
                               java.lang.String value)

store

public void store(java.io.OutputStream stream)
           throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()

addToComment

public void addToComment(Comment comment,
                         java.lang.String line)


Copyright © 2003-2005 The Codehaus. All Rights Reserved.