Class RefElement


  • public class RefElement
    extends nu.xom.Element
    Author:
    Group 3
    • Constructor Summary

      Constructors 
      Constructor Description
      RefElement​(java.lang.String name)  
      RefElement​(java.lang.String name, java.lang.String uri)  
      RefElement​(java.lang.String name, java.lang.String uri, java.lang.String target, StyledTextSeg.REF_TYPE refType)  
      RefElement​(nu.xom.Element element)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getTarget()
      Get ref target.
      java.lang.String getText()
      Get link text.
      StyledTextSeg.REF_TYPE getType()
      Get the ref's type.
      • Methods inherited from class nu.xom.Element

        addAttribute, addNamespaceDeclaration, appendChild, copy, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeValue, getAttributeValue, getBaseURI, getChildElements, getChildElements, getChildElements, getFirstChildElement, getFirstChildElement, getLocalName, getNamespaceDeclarationCount, getNamespacePrefix, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getQualifiedName, getValue, insertChild, removeAttribute, removeChildren, removeNamespaceDeclaration, setBaseURI, setLocalName, setNamespacePrefix, setNamespaceURI, shallowCopy, toString, toXML
      • Methods inherited from class nu.xom.ParentNode

        appendChild, getChild, getChildCount, indexOf, insertChild, removeChild, removeChild, replaceChild
      • Methods inherited from class nu.xom.Node

        detach, equals, getDocument, getParent, hashCode, query, query
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RefElement

        public RefElement​(java.lang.String name)
      • RefElement

        public RefElement​(java.lang.String name,
                          java.lang.String uri)
      • RefElement

        public RefElement​(nu.xom.Element element)
      • RefElement

        public RefElement​(java.lang.String name,
                          java.lang.String uri,
                          java.lang.String target,
                          StyledTextSeg.REF_TYPE refType)
    • Method Detail

      • getText

        public final java.lang.String getText()
        Get link text.
        Returns:
        String.
      • getType

        public final StyledTextSeg.REF_TYPE getType()
        Get the ref's type. Will guess if not specified.
        Returns:
        ref type. Internal or External.
      • getTarget

        public final java.lang.String getTarget()
        Get ref target. RETURNS NULL IF NO TARGET GIVEN! Should never return null in practice.
        Returns:
        Ref Target.