org.omnaest.utils.propertyfile.content.index
Class Index

java.lang.Object
  extended by org.omnaest.utils.propertyfile.content.index.Index

public class Index
extends Object

Representation of an Index which corresponds strongly to line numbers. The difference is, that Propertys which are spanning multiple lines have only one index position but two line numbers.

An Index will be created by a IndexManager.

Author:
Omnaest
See Also:
IndexManager, IndexManager.createNewAppendedIndex(), IndexManager.createNewPreviousIndex(Index)

Field Summary
protected  IndexManager lineManager
           
 
Constructor Summary
protected Index(IndexManager lineManager)
           
 
Method Summary
 IndexManager getLineManager()
           
 Index getNextLine()
           
 Index getPreviousLine()
           
 void removeLine()
           
 int resolveIndexPosition()
           
 void setLineManager(IndexManager lineManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineManager

protected IndexManager lineManager
Constructor Detail

Index

protected Index(IndexManager lineManager)
Method Detail

getLineManager

public IndexManager getLineManager()

setLineManager

public void setLineManager(IndexManager lineManager)

getPreviousLine

public Index getPreviousLine()

removeLine

public void removeLine()

resolveIndexPosition

public int resolveIndexPosition()

getNextLine

public Index getNextLine()


Copyright © 2013. All Rights Reserved.