asia.redact.bracket.properties.mgmt
Class Attributes

java.lang.Object
  extended by asia.redact.bracket.properties.mgmt.Attributes

public class Attributes
extends Object

Instructions on how to handle the load of the files which apply to the full work flow. See comments on individual fields below for details.

Author:
Dave

Field Summary
 boolean failOnReferenceNotFound
          Fail cleanly and immediately with a RuntimeException if reference yields no properties
 boolean insertResultsIntoSystemProperties
          If true, insert all the loaded properties into System using setProperty() on each item;
 Locale locale
          If this is non-null, treat the LoadList like a set of ResourceBundle paths and localize them.
 boolean scanForPropertiesFiles
          If this is true, when a path is a directory, it will be scanned for properties files (*.propeties) and those will be loaded in the order in which they are found using javaio.File.listFiles().
 boolean useBasicTokenMode
          Use BasicToken Mode
 boolean useBracketExtensionHeader
          If true, search for bracket extensions header and load accordingly.
 boolean useCompatibilityMode
          If true, Compatibility mode is turned on for parsing as cvlose as possible to java.util.Properties
 boolean useExplicitMode
          If true, use Mode.Explicit.
 boolean useLineMode
          If true, use Mode.Line.
 boolean warnOnNoPropertiesFileExtension
          If set to true, emit a warning if files in the list are not .properties files (ignored if scanForPropertiesFiles is set).
 boolean warnOnReferenceNotFound
          If set to true, will warn on the fact a resource was not found where it was specified.
 
Constructor Summary
Attributes()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scanForPropertiesFiles

public boolean scanForPropertiesFiles
If this is true, when a path is a directory, it will be scanned for properties files (*.propeties) and those will be loaded in the order in which they are found using javaio.File.listFiles().


warnOnNoPropertiesFileExtension

public boolean warnOnNoPropertiesFileExtension
If set to true, emit a warning if files in the list are not .properties files (ignored if scanForPropertiesFiles is set).


warnOnReferenceNotFound

public boolean warnOnReferenceNotFound
If set to true, will warn on the fact a resource was not found where it was specified. If false, will be ignored


failOnReferenceNotFound

public boolean failOnReferenceNotFound
Fail cleanly and immediately with a RuntimeException if reference yields no properties


useBracketExtensionHeader

public boolean useBracketExtensionHeader
If true, search for bracket extensions header and load accordingly. This turns on Mode.Explicit


useCompatibilityMode

public boolean useCompatibilityMode
If true, Compatibility mode is turned on for parsing as cvlose as possible to java.util.Properties


useLineMode

public boolean useLineMode
If true, use Mode.Line.


useExplicitMode

public boolean useExplicitMode
If true, use Mode.Explicit.


useBasicTokenMode

public boolean useBasicTokenMode
Use BasicToken Mode


insertResultsIntoSystemProperties

public boolean insertResultsIntoSystemProperties
If true, insert all the loaded properties into System using setProperty() on each item;


locale

public Locale locale
If this is non-null, treat the LoadList like a set of ResourceBundle paths and localize them. Obviously this only applies to EXTERNAL and CLASSLOADED ReferenceTypes

Constructor Detail

Attributes

public Attributes()


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