Class InstanceComponentImpl

    • Constructor Detail

      • InstanceComponentImpl

        public InstanceComponentImpl()
    • Method Detail

      • getDeclaration

        public XSDNamedComponent getDeclaration()
        Specified by:
        getDeclaration in interface InstanceComponent
        Returns:
        The feature describing the component instance.
      • setNamespace

        public void setNamespace​(String namespace)
        Description copied from interface: InstanceComponent
        Sets the namespace of the element.
        Specified by:
        setNamespace in interface InstanceComponent
        Parameters:
        namespace - The new namespace.
      • getName

        public String getName()
        Specified by:
        getName in interface InstanceComponent
        Returns:
        The name of the element.
      • setName

        public void setName​(String name)
        Description copied from interface: InstanceComponent
        Sets the name of the element.
        Specified by:
        setName in interface InstanceComponent
        Parameters:
        name - The new name.
      • getText

        public String getText()
        Specified by:
        getText in interface InstanceComponent
        Returns:
        The text inside of the component, or the empty string if the component does not contain any text.
      • setText

        public void setText​(String text)
        Description copied from interface: InstanceComponent
        Sets the text of the element.
        Specified by:
        setText in interface InstanceComponent
        Parameters:
        text - The new text
      • addText

        public void addText​(String text)
      • addText

        public void addText​(char[] ch,
                            int start,
                            int length)
      • toString

        public String toString()
        By default indicate the elements name
        Overrides:
        toString in class Object