proposed fix for hasPrimitiveValue()

This commit is contained in:
Grahame Grieve 2024-06-02 21:11:21 +10:00
parent 1e940dc489
commit c4585c995f
2 changed files with 3 additions and 2 deletions

View File

@ -613,7 +613,8 @@ public class Element extends Base implements NamedItem {
@Override
public boolean hasPrimitiveValue() {
return property.isPrimitiveName(name) || property.IsLogicalAndHasPrimitiveValue(name);
//return property.isPrimitiveName(name) || property.IsLogicalAndHasPrimitiveValue(name);
return super.hasPrimitiveValue();
}

View File

@ -267,7 +267,7 @@ public abstract class Base implements Serializable, IBase, IElement {
}
public boolean hasPrimitiveValue() {
return isPrimitive();
return primitiveValue() != null;
}
public String primitiveValue() {