Package com.priint.pubserver.config
Class ConfigIndex
- java.lang.Object
-
- com.priint.pubserver.config.ConfigIndex
-
- All Implemented Interfaces:
java.io.Serializable
public class ConfigIndex extends java.lang.Object implements java.io.SerializableIndex of configuration documents containing a set of#ConfigIndexEntry.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigIndex.ConfigIndexEntryIndex entry for one configuration document
-
Constructor Summary
Constructors Constructor Description ConfigIndex()Instantiates a new Config index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOrUpdateEntry(java.lang.String label, java.lang.String path)Add or update entry.java.util.Set<ConfigIndex.ConfigIndexEntry>getItems()Gets items.java.lang.StringgetLabel()Gets label.java.lang.StringgetRepositoryFilename()Gets repository filename.java.lang.StringgetRepositoryPath()Gets repository path.voidremoveEntry(java.lang.String path)Remove entry.voidsetItems(java.util.Set<ConfigIndex.ConfigIndexEntry> items)Sets items.voidsetLabel(java.lang.String label)Sets label.java.lang.StringtoString()
-
-
-
Method Detail
-
getItems
public java.util.Set<ConfigIndex.ConfigIndexEntry> getItems()
Gets items.- Returns:
- the items
-
setItems
public void setItems(java.util.Set<ConfigIndex.ConfigIndexEntry> items)
Sets items.- Parameters:
items- the items
-
getLabel
public java.lang.String getLabel()
Gets label.- Returns:
- the label
-
setLabel
public void setLabel(java.lang.String label)
Sets label.- Parameters:
label- the label
-
addOrUpdateEntry
public void addOrUpdateEntry(java.lang.String label, java.lang.String path)Add or update entry.- Parameters:
label- the labelpath- the path
-
removeEntry
public void removeEntry(java.lang.String path)
Remove entry.- Parameters:
path- the path
-
getRepositoryPath
public java.lang.String getRepositoryPath()
Gets repository path.- Returns:
- the repository path
-
getRepositoryFilename
public java.lang.String getRepositoryFilename()
Gets repository filename.- Returns:
- the repository filename
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-