Package org.arakhne.afc.inputoutput.xml
Class XMLNameConstraint
- java.lang.Object
-
- org.arakhne.afc.inputoutput.xml.XMLNameConstraint
-
- All Implemented Interfaces:
XMLConstraint
public class XMLNameConstraint extends Object implements XMLConstraint
Matches the attribute "name" 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 Summary
Constructors Constructor Description XMLNameConstraint(String value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValidElement(Element element)
Replies if the given element is validating the constraints.
-
-
-
Constructor Detail
-
XMLNameConstraint
public XMLNameConstraint(String 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 interfaceXMLConstraint
- Parameters:
element
- the element to validate.- Returns:
true
if validation is success, otherwisefalse
.
-
-