fixing hasPrimitiveValue across the versions for HAPI

This commit is contained in:
Grahame Grieve 2019-07-04 10:25:07 +10:00
parent 17436ea543
commit ee0a32b6ab
4 changed files with 16 additions and 0 deletions

View File

@ -160,4 +160,5 @@ public abstract class PrimitiveType<T> extends Type implements IPrimitiveType<T>
return b.isEquals();
}
}

View File

@ -208,5 +208,9 @@ public abstract class PrimitiveType<T> extends Type implements IPrimitiveType<T>
} else
return super.getProperty(hash, name, checkValid);
}
@Override
public boolean hasPrimitiveValue() {
return StringUtils.isNotBlank(getValueAsString());
}
}

View File

@ -233,4 +233,10 @@ public abstract class PrimitiveType<T> extends Type implements IPrimitiveType<T>
protected void forceStringValue(String value) {
myStringValue = value;
}
@Override
public boolean hasPrimitiveValue() {
return StringUtils.isNotBlank(getValueAsString());
}
}

View File

@ -233,4 +233,9 @@ public abstract class PrimitiveType<T> extends Type implements IPrimitiveType<T>
protected void forceStringValue(String value) {
myStringValue = value;
}
@Override
public boolean hasPrimitiveValue() {
return StringUtils.isNotBlank(getValueAsString());
}
}