com.wewebu.ow.server.util
Class OwXMLUtilOptionAndPlaceholderFilter

java.lang.Object
  extended by com.wewebu.ow.server.util.OwXMLUtilPlaceholderFilter
      extended by com.wewebu.ow.server.util.OwXMLUtilOptionAndPlaceholderFilter
All Implemented Interfaces:
OwXMLUtil

public class OwXMLUtilOptionAndPlaceholderFilter
extends OwXMLUtilPlaceholderFilter

Utility class for XML access and debugging.
Overrides OwXMLUtilPlaceholderFilter with option IDs.
Option ID's allow the selection of nodes through option ID attributes.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

See Also:
OwStandardOptionXMLUtil

Field Summary
 
Fields inherited from class com.wewebu.ow.server.util.OwXMLUtilPlaceholderFilter
m_wrappednode
 
Constructor Summary
OwXMLUtilOptionAndPlaceholderFilter(Node node_p, OwAttributeBag placeholderattributeBag_p, OwAttributeBag optionsIDs_p)
          construct a template XML util node with option and placeholder configuration filter
OwXMLUtilOptionAndPlaceholderFilter(OwXMLUtil node_p, OwAttributeBag placeholderattributeBag_p, OwAttributeBag optionsIDs_p)
          construct a template XML util node with option and placeholder configuration filter
 
Method Summary
 List getSafeNodeList(String strNodeName_p)
          retrieve a node list in a subnode
 List getSafeStringList(String strNodeName_p)
          retrieve a string list in a subnode
 Set getSafeStringSet(String strNodeName_p)
          retrieve a string list in a subnode
protected  String getSelectedNodeName(String name_p)
          get the node name that was selected through the selectiveConfigurationIDs_p
 Node getSubNode(String name_p)
          get the subnode with the given tagname
 
Methods inherited from class com.wewebu.ow.server.util.OwXMLUtilPlaceholderFilter
getAttributeValue, getNode, getNodeValue, getNodeValue, getPlaceholderValue, getSafeBooleanAttributeValue, getSafeBooleanValue, getSafeCDATAList, getSafeCDATAList, getSafeIntegerAttributeValue, getSafeIntegerValue, getSafeNodeList, getSafeStringAttributeValue, getSafeStringList, getSafeTextValue, getSafeTextValue, getSafeUtilList, getSafeUtilList, getSubUtil, getURLFromNode, writeHtmlDump
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwXMLUtilOptionAndPlaceholderFilter

public OwXMLUtilOptionAndPlaceholderFilter(OwXMLUtil node_p,
                                           OwAttributeBag placeholderattributeBag_p,
                                           OwAttributeBag optionsIDs_p)
                                    throws Exception
construct a template XML util node with option and placeholder configuration filter

Parameters:
node_p - an OwXMLUtil
placeholderattributeBag_p - OwAttributeBag with placeholders
optionsIDs_p - OwAttributeBag of ID's for selective configuration maps node names to selective IDs e.g.: viewerservlet : viewerservlet.MyID
Throws:
Exception

OwXMLUtilOptionAndPlaceholderFilter

public OwXMLUtilOptionAndPlaceholderFilter(Node node_p,
                                           OwAttributeBag placeholderattributeBag_p,
                                           OwAttributeBag optionsIDs_p)
                                    throws Exception
construct a template XML util node with option and placeholder configuration filter

Parameters:
node_p - a Node
placeholderattributeBag_p - OwAttributeBag with placeholders
optionsIDs_p - OwAttributeBag of ID's for selective configuration maps node names to selective IDs e.g.: viewerservlet : viewerservlet.MyID
Throws:
Exception
Method Detail

getSubNode

public Node getSubNode(String name_p)
                throws Exception
Description copied from interface: OwXMLUtil
get the subnode with the given tagname

Specified by:
getSubNode in interface OwXMLUtil
Overrides:
getSubNode in class OwXMLUtilPlaceholderFilter
Parameters:
name_p - tag name of requested node
Returns:
org.w3c.dom.Node
Throws:
Exception

getSelectedNodeName

protected String getSelectedNodeName(String name_p)
get the node name that was selected through the selectiveConfigurationIDs_p

Parameters:
name_p -
Returns:
a String

getSafeNodeList

public List getSafeNodeList(String strNodeName_p)
Description copied from interface: OwXMLUtil
retrieve a node list in a subnode

Specified by:
getSafeNodeList in interface OwXMLUtil
Overrides:
getSafeNodeList in class OwXMLUtilPlaceholderFilter
Parameters:
strNodeName_p - String name of the subnode with the node list
Returns:
List of DOM Nodes

getSafeStringList

public List getSafeStringList(String strNodeName_p)
Description copied from interface: OwXMLUtil
retrieve a string list in a subnode

Specified by:
getSafeStringList in interface OwXMLUtil
Overrides:
getSafeStringList in class OwXMLUtilPlaceholderFilter
Parameters:
strNodeName_p - String name of the subnode with the string list
Returns:
List of Strings

getSafeStringSet

public Set getSafeStringSet(String strNodeName_p)
Description copied from interface: OwXMLUtil
retrieve a string list in a subnode

Specified by:
getSafeStringSet in interface OwXMLUtil
Overrides:
getSafeStringSet in class OwXMLUtilPlaceholderFilter
Parameters:
strNodeName_p - String name of the subnode with the string list
Returns:
List of Strings


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.