org.htmlcleaner
Class SpecialEntity
java.lang.Object
org.htmlcleaner.SpecialEntity
public class SpecialEntity
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecialEntity
public SpecialEntity(String key,
int intCode,
String htmlString,
boolean htmlSpecialEntity)
- Parameters:
key
- value between & and the ';' example 'amp' for '&'intCode
- htmlString
- htmlSpecialEntity
- entity is affected by translateSpecialEntities property setting.
getKey
public String getKey()
- Returns:
- the key
intValue
public int intValue()
- Returns:
- the intCode
getHtmlString
public String getHtmlString()
- Returns:
- the domString
getEscapedXmlString
public String getEscapedXmlString()
getEscaped
public String getEscaped(boolean htmlEscaped)
isHtmlSpecialEntity
public boolean isHtmlSpecialEntity()
- Returns:
- the translateSpecialEntities
charValue
public char charValue()
- Returns:
intValue()
cast to an char
getDecimalNCR
public String getDecimalNCR()
- Returns:
- Numeric Character Reference in decimal format
getHexNCR
public String getHexNCR()
- Returns:
- Numeric Character Reference in hex format
getEscapedValue
public String getEscapedValue()
- Returns:
- Escaped value of the entity
Copyright © 2006-2014. All Rights Reserved.