class XMLNameConstraint implements XMLConstraint {

	@Override
	public boolean isValidElement(Element element) {
		final String v = XMLUtil.getAttributeValueWithDefault(element, null, XMLUtil.ATTR_NAME);
		return v == this.value || (v != null && v.equals(this.value));
	}

	public  XMLNameConstraint(String value);

}