Class XMLIdentifierConstraint

  • All Implemented Interfaces:
    XMLConstraint

    public class XMLIdentifierConstraint
    extends Object
    implements XMLConstraint
    Matches the attribute "id" with the given value.
    Since:
    14.0
    Version:
    17.0 2020-01-04 14:41:40
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    inputoutput
    • Constructor Detail

      • XMLIdentifierConstraint

        public XMLIdentifierConstraint​(UUID value)
        Constructor.
        Parameters:
        value - is the value to match.
    • Method Detail

      • isValidElement

        public boolean isValidElement​(Element element)
        Description copied from interface: XMLConstraint
        Replies if the given element is validating the constraints.
        Specified by:
        isValidElement in interface XMLConstraint
        Parameters:
        element - the element to validate.
        Returns:
        true if validation is success, otherwise false.