Class XmlComment

    • Constructor Detail

      • XmlComment

        XmlComment​(XmlElement parent,
                   org.w3c.dom.Node node)
        Creates a new XML comment fragment artifact.
        Parameters:
        parent - the parent artifact
        node - the node that is represented by this XmlElement
    • Method Detail

      • create

        public static XmlComment create​(XmlElement parent,
                                        java.lang.String contents)
                                 throws VilException
        Creates a new XmlComment as child of given parent.
        Parameters:
        parent - The parent of the new XmlComment.
        contents - optional initial contents, ignored if empty
        Returns:
        The created XmlElement.
        Throws:
        VilException - if element could not be created.
      • getStringValue

        public java.lang.String getStringValue​(IStringValueProvider.StringComparator comparator)
        Description copied from interface: IStringValueProvider
        Returns the string value of this object.
        Parameters:
        comparator - if the sequence of elements, e.g., in case of collections, shall be ordered according to the comparator, null if the original sequence shall be returned
        Returns:
        the string value
      • getName

        public java.lang.String getName()
                                 throws VilException
        Description copied from interface: IArtifact
        Returns the name of this artifact.
        Returns:
        the name of this artifact
        Throws:
        VilException - in case of serious problems so that this operation cannot continue
      • rename

        public void rename​(java.lang.String name)
                    throws VilException
        Description copied from interface: IArtifact
        Renames this artifact.
        Parameters:
        name - the new name of this artifact
        Throws:
        VilException - in case of serious problems so that this operation cannot continue
      • deleteChild

        void deleteChild​(XmlNode child)
        Description copied from class: XmlNode
        Removes a child from this Element.
        Specified by:
        deleteChild in class XmlNode
        Parameters:
        child - the child that is to be removed.