com.neeve.util
Class UtlPropsDescriptor

java.lang.Object
  extended by com.neeve.util.UtlDescriptor
      extended by com.neeve.util.UtlPropsDescriptor

public final class UtlPropsDescriptor
extends UtlDescriptor

Utility class representing a Neeve properties descriptor.

This class is a utility class to represent a Neeve properties descriptor. Such descriptors are specialized descriptors (see UtlDescriptor) of the form [type]://prop=name&prop=name&...&prop=name where each prop=name name value pair specifies a property value.

This class IS NOT intended to be used by end users.


Field Summary
 Properties props
          The set of properties parsed from the config string.
 
Fields inherited from class com.neeve.util.UtlDescriptor
config, SEPARATOR_STR, type
 
Method Summary
static UtlPropsDescriptor parse(String descriptor, Properties props)
          Parse an properties descriptor into its components.
 
Methods inherited from class com.neeve.util.UtlDescriptor
appendTo, parse, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

props

public final Properties props
The set of properties parsed from the config string.

Method Detail

parse

public static UtlPropsDescriptor parse(String descriptor,
                                       Properties props)
                                throws IllegalArgumentException
Parse an properties descriptor into its components.

Parameters:
descriptor - The properties descriptor.
props - The properties table to use as the starting point for setting properties parsed from the descriptor.
Throws:
IllegalArgumentException - Thrown in case the descriptor string is not of the form [type]://prop=name&prop=name&...

This method parses a properties descriptor. Upon return, the provided properties table is updated with the configuration properties parsed from the descriptor string.



Copyright © 2016 Neeve Research, LLC. All Rights Reserved.