public class

PropertyUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.properties.impl.PropertyUtil

Summary

Public Constructors
PropertyUtil()
Public Methods
static String formatList(IPropertyDefinitionManager pdm, boolean alphasort)
Print the list of properties defined by the provided PDM and its descendants (not the ascendants).
static String formatTree(IPropertyDefinitionManager pdm, boolean alphasort)
Print a tree view of properties defined by the provided PDM and its descendants (not the ascendants).
static IPropertyDefinition getDefinition(IPropertyDefinitionManager pdm, String fqname)
Retrieve a property from a fully-qualified name
static IPropertyDefinitionManager getNamespace(IPropertyDefinitionManager pdm, String namespace)
Retrieve a namespace.
static IPropertyDefinitionManager getRoot(IPropertyDefinitionManager pdm)
Retrieve the root of a PDM tree from any PDM in that tree.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PropertyUtil ()

Public Methods

public static String formatList (IPropertyDefinitionManager pdm, boolean alphasort)

Print the list of properties defined by the provided PDM and its descendants (not the ascendants).

public static String formatTree (IPropertyDefinitionManager pdm, boolean alphasort)

Print a tree view of properties defined by the provided PDM and its descendants (not the ascendants).

public static IPropertyDefinition getDefinition (IPropertyDefinitionManager pdm, String fqname)

Retrieve a property from a fully-qualified name

Parameters
pdm any PDM
fqname a fully-qualified property name, which must start with '.'
Returns
  • the definition or null

public static IPropertyDefinitionManager getNamespace (IPropertyDefinitionManager pdm, String namespace)

Retrieve a namespace.

Parameters
pdm a root or non-root PDM
namespace a relative or fully-qualified region or sub-region name, eg ".com.pnf.abc", "com.pnf", pnf.abc.def", etc.
Returns
  • the PDM of the provided region, null on error

public static IPropertyDefinitionManager getRoot (IPropertyDefinitionManager pdm)

Retrieve the root of a PDM tree from any PDM in that tree.