org.exoplatform.social.common.xmlprocessor.model
Class XMLTagFilterPolicy

java.lang.Object
  extended by org.exoplatform.social.common.xmlprocessor.model.XMLTagFilterPolicy

public class XMLTagFilterPolicy
extends Object

Contains the set of XMLTagFilterPolicy.AllowedTag.

Since:
1.2.1
Author:
Ly Minh Phuong - http://phuonglm.net

Nested Class Summary
static class XMLTagFilterPolicy.AllowedTag
          The allowed tags: tagName and tagAttributes to be configured for allowed tags.
static class XMLTagFilterPolicy.AllowedTagPlugin
          The plugin component for configuring the list of XMLTagFilterPolicy.AllowedTag.
 
Constructor Summary
XMLTagFilterPolicy()
          Default constructor
 
Method Summary
 void addAllowedTag(String tagName, Set<String> tagAttributes)
          Adds allowed tagName and its allowed attributes.
 void addAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
          Adds allowed tag.
 void addAllowedTags(String... tagNames)
          Adds many tags at once with empty attributes.
 Set<XMLTagFilterPolicy.AllowedTag> getAllowedTagSet()
          Gets allowed tag set.
 void removeAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
          Removed allowed tag.
 void setAllowedTagPlugin(XMLTagFilterPolicy.AllowedTagPlugin allowedTagPlugin)
          Sets XMLTagFilterPolicy.AllowedTagPlugin.
 void setAllowedTagSet(Set<XMLTagFilterPolicy.AllowedTag> allowedTagSet)
          Sets allowed tag set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTagFilterPolicy

public XMLTagFilterPolicy()
Default constructor

Method Detail

getAllowedTagSet

public Set<XMLTagFilterPolicy.AllowedTag> getAllowedTagSet()
Gets allowed tag set.

Returns:
the allowed tag set

setAllowedTagSet

public void setAllowedTagSet(Set<XMLTagFilterPolicy.AllowedTag> allowedTagSet)
Sets allowed tag set.

Parameters:
allowedTagSet - the allowed tag set

addAllowedTags

public void addAllowedTags(String... tagNames)
Adds many tags at once with empty attributes.

Parameters:
tagNames -

addAllowedTag

public void addAllowedTag(String tagName,
                          Set<String> tagAttributes)
Adds allowed tagName and its allowed attributes.

Parameters:
tagName - the tag name
tagAttributes - the set of attributes

addAllowedTag

public void addAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
Adds allowed tag.

Parameters:
allowedTag - the allowed tag

removeAllowedTag

public void removeAllowedTag(XMLTagFilterPolicy.AllowedTag allowedTag)
Removed allowed tag.

Parameters:
allowedTag - the allowed tag

setAllowedTagPlugin

public void setAllowedTagPlugin(XMLTagFilterPolicy.AllowedTagPlugin allowedTagPlugin)
Sets XMLTagFilterPolicy.AllowedTagPlugin.

Parameters:
allowedTagPlugin -


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.