Class AbstractReferenceType

    • Constructor Detail

      • AbstractReferenceType

        public AbstractReferenceType()
    • Method Detail

      • getHref

        public String getHref()
        Get href
        Returns:
        Href
      • getTitle

        public String getTitle()
        Get title
        Returns:
        Title
      • getRole

        public String getRole()
        Get role
        Returns:
        Role
      • isSetHref

        public boolean isSetHref()
        Check whether href is set
        Returns:
        true, if href is set
      • isSetTitle

        public boolean isSetTitle()
        Check whether title is set
        Returns:
        true, if title is set
      • isSetRole

        public boolean isSetRole()
        Check whether role is set
        Returns:
        true, if role is set
      • hasValues

        public boolean hasValues()
        Check whether href, title, and role are set
        Returns:
        true, if href, title, and role are set
      • getTitleOrFromHref

        public String getTitleOrFromHref()
        Get title from href.
        Cuts href:
        - starts with 'http': cuts string at last '/'
        - starts with 'urn': cuts string at last ':'
        - contains "#": cuts string at last "#"
        Returns:
        Title from href
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object