class XMLValueConstraint implements XMLConstraint {

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

	public  XMLValueConstraint(String name, E value);

}