Class Component.Tag

  • Enclosing class:
    Component

    public static class Component.Tag
    extends java.lang.Object
    Represents a tag.
    • Constructor Summary

      Constructors 
      Constructor Description
      Tag()
      Creates an empty instance.
      Tag​(java.lang.String tag)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addText​(java.lang.String text)
      Sets the tag value.
      java.lang.String getTag()
      Obtains the tag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Tag

        public Tag()
        Creates an empty instance.
      • Tag

        public Tag​(java.lang.String tag)
        Creates a new instance.
        Parameters:
        tag - the tag
        Since:
        CycloneDX Antlib 0.2
    • Method Detail

      • addText

        public void addText​(java.lang.String text)
        Sets the tag value.
        Parameters:
        text - the tag
      • getTag

        public java.lang.String getTag()
        Obtains the tag.
        Returns:
        tag