Interface IMicroAttribute

    • Method Detail

      • getNamespaceURI

        @Nullable
        default String getNamespaceURI()
        Get the namespace URI of this attribute
        Returns:
        May be null if this attribute has no namespace URI.
      • hasNamespaceURI

        default boolean hasNamespaceURI()
        Check if this attribute has a specified namespace URI.
        Returns:
        true if this attribute has a specified namespace URI, false otherwise
      • hasNoNamespaceURI

        default boolean hasNoNamespaceURI()
        Check if this attribute has no namespace URI.
        Returns:
        true if this attribute has no namespace URI, false otherwise
      • hasNamespaceURI

        default boolean hasNamespaceURI​(@Nullable
                                        String sNamespaceURI)
        Check if this attribute has the specified namespace URI.
        Parameters:
        sNamespaceURI - The namespace URI to check. May not be null.
        Returns:
        true if this attribute has the specified namespace URI, false otherwise
      • getAttributeName

        @Nonnull
        default String getAttributeName()
        Get the (local) name of the attribute. It never contains XML schema prefixes or the like.
        Returns:
        The name of the attribute and never null.
      • getAttributeQName

        @Nonnull
        IMicroQName getAttributeQName()
        Get the qualified name of the attribute. It never contains XML schema prefixes or the like.
        Returns:
        The qualified name (namespace URI + local name) of the attribute and never null.
      • getAsXMLQName

        @Nonnull
        default QName getAsXMLQName()
        Returns:
        The regular XML QName of this attribute using an empty prefix.
      • getAsXMLQName

        @Nonnull
        default QName getAsXMLQName​(@Nonnull
                                    String sPrefix)
        Parameters:
        sPrefix - the namespace prefix to be used in the resulting object. May not be null but maybe empty.
        Returns:
        The regular XML QName of this attribute using the provided prefix.
      • getAttributeValue

        @Nonnull
        String getAttributeValue()
        Returns:
        The value associated with this attribute. Never null.
      • setAttributeValue

        @Nonnull
        com.helger.commons.state.EChange setAttributeValue​(@Nonnull
                                                           String sAttributeValue)
        Set the value of the attribute.
        Parameters:
        sAttributeValue - The new value to be set. May not be null.
        Returns:
        EChange.