asia.redact.bracket.properties
Class ImmutableValueModel

java.lang.Object
  extended by asia.redact.bracket.properties.BasicValueModel
      extended by asia.redact.bracket.properties.ImmutableValueModel
All Implemented Interfaces:
ValueModel

public class ImmutableValueModel
extends BasicValueModel

A ValueModel in which the internals cannot be changed once set.

Author:
Dave

Field Summary
 
Fields inherited from class asia.redact.bracket.properties.BasicValueModel
comments, lineSeparator, separator, values
 
Constructor Summary
ImmutableValueModel(List<String> comments, List<String> values)
           
ImmutableValueModel(String... value)
           
 
Method Summary
 void addComment(String comment)
           
 void addValue(String value)
           
 void clearComments()
           
 List<String> getComments()
          Return a copy only, do not expose our internals
 char getSeparator()
           
 List<String> getValues()
           
 void setSeparator(char separator)
           
 
Methods inherited from class asia.redact.bracket.properties.BasicValueModel
equals, getValue, hashCode, toString, toXML, toXMLCompatibilityMode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableValueModel

public ImmutableValueModel(List<String> comments,
                           List<String> values)

ImmutableValueModel

public ImmutableValueModel(String... value)
Method Detail

getSeparator

public char getSeparator()
Specified by:
getSeparator in interface ValueModel
Overrides:
getSeparator in class BasicValueModel

getComments

public List<String> getComments()
Return a copy only, do not expose our internals

Specified by:
getComments in interface ValueModel
Overrides:
getComments in class BasicValueModel

getValues

public List<String> getValues()
Specified by:
getValues in interface ValueModel
Overrides:
getValues in class BasicValueModel

setSeparator

public void setSeparator(char separator)
Overrides:
setSeparator in class BasicValueModel

addValue

public void addValue(String value)
Overrides:
addValue in class BasicValueModel

addComment

public void addComment(String comment)
Overrides:
addComment in class BasicValueModel

clearComments

public void clearComments()
Overrides:
clearComments in class BasicValueModel


Copyright © 2011-2013 David R. Smith. All Rights Reserved.