Class ItemPathConverter

java.lang.Object
com.evolveum.midpoint.ninja.util.ItemPathConverter
All Implemented Interfaces:
com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<ItemPath>

public class ItemPathConverter extends Object implements com.beust.jcommander.IStringConverter<ItemPath>, com.beust.jcommander.IParameterValidator
Converter and validator for ItemPath objects used in command-line parsing.

This class converts string values to ItemPath objects. It supports the usage of namespace prefixes by declaring them, for example:


 -ei "declare namespace key = 'namespaceLink'; extension/key:itemName"
 
  • Constructor Details

    • ItemPathConverter

      public ItemPathConverter()
  • Method Details

    • validate

      public void validate(String name, String value) throws com.beust.jcommander.ParameterException
      Specified by:
      validate in interface com.beust.jcommander.IParameterValidator
      Throws:
      com.beust.jcommander.ParameterException
    • convert

      public ItemPath convert(String value)
      Specified by:
      convert in interface com.beust.jcommander.IStringConverter<ItemPath>