com.izforge.izpack.panels.userinput.field
Class ElementReader

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.ElementReader
Direct Known Subclasses:
FieldReader

public class ElementReader
extends Object

Configuration element reader.

Author:
Tim Anderson

Constructor Summary
ElementReader(Config config)
          Constructs a ElementReader.
 
Method Summary
 Condition getComplexPanelCondition(IXMLElement spec, PlatformModelMatcher matcher, InstallData installData, RulesEngine rules)
          Gets a global condition for viewing an UserInputPanel depending on the following optional nested tags to the panel tag: createForPack createForUnselectedPack os
protected  Config getConfig()
          Returns the configuration.
 List<OsModel> getOsModels(IXMLElement element)
          Returns the OS models associated with an element.
 List<String> getPacks(IXMLElement element)
          Returns the pack names associated with an element.
 List<String> getUnselectedPacks(IXMLElement element)
          Returns the unselected pack names associated with an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementReader

public ElementReader(Config config)
Constructs a ElementReader.

Parameters:
config - the configuration to read from
Method Detail

getPacks

public List<String> getPacks(IXMLElement element)
Returns the pack names associated with an element.

Parameters:
element - the element
Returns:
the 'name' attributes from the "createForPack" elements

getUnselectedPacks

public List<String> getUnselectedPacks(IXMLElement element)
Returns the unselected pack names associated with an element.

Parameters:
element - the element
Returns:
the 'name' attributes from the "createForUnselectedPack" elements

getOsModels

public List<OsModel> getOsModels(IXMLElement element)
Returns the OS models associated with an element.

Parameters:
element - the element
Returns:
the OSes

getComplexPanelCondition

public Condition getComplexPanelCondition(IXMLElement spec,
                                          PlatformModelMatcher matcher,
                                          InstallData installData,
                                          RulesEngine rules)
Gets a global condition for viewing an UserInputPanel depending on the following optional nested tags to the panel tag:

Parameters:
spec - UserInputPanel descriptor
matcher - the platform-model matcher
installData - the installation data
rules - the rules engine
Returns:

getConfig

protected Config getConfig()
Returns the configuration.

Returns:
the configuration


Copyright © 2018. All rights reserved.