org.htmlcleaner
Class CleanerTransformations
java.lang.Object
org.htmlcleaner.CleanerTransformations
public class CleanerTransformations
- extends Object
Contains transformation collection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CleanerTransformations
public CleanerTransformations()
CleanerTransformations
public CleanerTransformations(Map transInfos)
- Parameters:
transInfos
-
addTransformation
public void addTransformation(TagTransformation tagTransformation)
- Adds specified tag transformation to the collection.
- Parameters:
tagTransformation
-
addGlobalTransformation
public void addGlobalTransformation(AttributeTransformation attributeTransformation)
hasTransformationForTag
public boolean hasTransformationForTag(String tagName)
getTransformation
public TagTransformation getTransformation(String tagName)
updateTagTransformations
public void updateTagTransformations(String key,
String value)
updateTagTransformations
public void updateTagTransformations(Map transInfos)
transformAttributes
public Map<String,String> transformAttributes(String originalTagName,
Map<String,String> attributes)
getTagName
public String getTagName(String tagName)
clear
public void clear()
Copyright © 2006-2014. All Rights Reserved.