Package com.helger.html.hc.impl
Class HCEntityNode
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCNode
-
- com.helger.html.hc.impl.HCEntityNode
-
- All Implemented Interfaces:
com.helger.commons.hierarchy.IHasChildren<IHCNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IHCNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>,IHCNode,Serializable
public class HCEntityNode extends AbstractHCNode
Represents an entity reference as HC node.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HCEntityNode(EHTMLEntity eEntity)HCEntityNode(IHTMLEntity aEntity, String sPlainText)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IHTMLEntitygetEntity()StringgetPlainText()protected com.helger.xml.microdom.IMicroEntityReferenceinternalConvertToMicroNode(IHCConversionSettingsToNode aConversionSettings)static HCEntityNodenewCopy()static HCEntityNodenewDownArrow()static HCEntityNodenewEuro()static HCEntityNodenewLeftArrow()static HCEntityNodenewNBSP()static HCEntityNodenewNDash()static HCEntityNodenewPerMille()static HCEntityNodenewRightArrow()static HCEntityNodenewShy()static HCEntityNodenewUpArrow()static HCEntityNodetimes()StringtoString()-
Methods inherited from class com.helger.html.hc.impl.AbstractHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getChildAtIndex, getChildCount, getChildren, getFirstChild, getLastChild, getNodeState, hasChildren, internalSetNodeState, onConsistencyCheck, onCustomizeNode, onFinalizeNodeState, onRegisterExternalResources, registerExternalResources
-
-
-
-
Constructor Detail
-
HCEntityNode
public HCEntityNode(@Nonnull EHTMLEntity eEntity)
-
HCEntityNode
public HCEntityNode(@Nonnull IHTMLEntity aEntity, @Nonnull String sPlainText)
-
-
Method Detail
-
getEntity
@Nonnull public IHTMLEntity getEntity()
-
internalConvertToMicroNode
@Nonnull protected com.helger.xml.microdom.IMicroEntityReference internalConvertToMicroNode(@Nonnull IHCConversionSettingsToNode aConversionSettings)
- Specified by:
internalConvertToMicroNodein classAbstractHCNode
-
getPlainText
@Nonnull public String getPlainText()
- Specified by:
getPlainTextin interfaceIHCNode- Overrides:
getPlainTextin classAbstractHCNode- Returns:
- The plain text representation of this text. May not be
null.
-
toString
public String toString()
- Overrides:
toStringin classAbstractHCNode
-
newNBSP
@Nonnull public static HCEntityNode newNBSP()
-
newCopy
@Nonnull public static HCEntityNode newCopy()
-
newEuro
@Nonnull public static HCEntityNode newEuro()
-
newLeftArrow
@Nonnull public static HCEntityNode newLeftArrow()
-
newRightArrow
@Nonnull public static HCEntityNode newRightArrow()
-
newUpArrow
@Nonnull public static HCEntityNode newUpArrow()
-
newDownArrow
@Nonnull public static HCEntityNode newDownArrow()
-
newNDash
@Nonnull public static HCEntityNode newNDash()
- Returns:
- dash of length "n"
-
newShy
@Nonnull public static HCEntityNode newShy()
- Returns:
- soft hyphen
-
newPerMille
@Nonnull public static HCEntityNode newPerMille()
- Returns:
- per mille sign
-
times
@Nonnull public static HCEntityNode times()
- Returns:
- "times" sign
-
-