/** * Get Marked value * * @return marked value */ public Boolean getMarked() { BooleanType bt = ((BooleanType) getProperty(MARKED)); return bt == null ? null : bt.getValue(); }
public BooleanType createBoolean(String namespaceURI, String prefix, String propertyName, boolean value) { return new BooleanType(metadata, namespaceURI, prefix, propertyName, value); }
/** * Get the value of the property as a Boolean. If you want to use this value * like a condition, you <i>must</i> do a null check before. * * @param qualifiedName The fully qualified property name for the Boolean. * * @return The value of the property as a Boolean, or null if the property * does not exist. */ public Boolean getBooleanPropertyValue(String qualifiedName) { AbstractField prop = getAbstractProperty(qualifiedName); if (prop != null) { if (prop instanceof BooleanType) { return ((BooleanType) prop).getValue(); } else { throw new IllegalArgumentException("Property asked is not a Boolean Property"); } } return null; }
public BooleanType createBoolean(String namespaceURI, String prefix, String propertyName, boolean value) { return new BooleanType(metadata, namespaceURI, prefix, propertyName, value); }
if (marked != null && !marked.getValue())
public BooleanType createBoolean(String namespaceURI, String prefix, String propertyName, boolean value) { return new BooleanType(metadata, namespaceURI, prefix, propertyName, value); }
/** * Get Marked value * * @return marked value */ public Boolean getMarked() { BooleanType bt = ((BooleanType) getProperty(MARKED)); return bt == null ? null : bt.getValue(); }
public Type getReturnType(Type columnType, Mapping mapping) throws QueryException { return new BooleanType();
/** * Get Marked value * * @return marked value */ public Boolean getMarked() { BooleanType bt = ((BooleanType) getProperty(MARKED)); return bt == null ? null : bt.getValue(); }
PropertyHandler<Integer> ph = new PropertyHandler<>(); IntegerType p1 = new IntegerType(); Integer v1 = ph.getValue(p1); // works fine BooleanType p3 = new BooleanType(); Boolean v3 = ph.getValue(p3); // compile time error
/** * Get the value of the property as a Boolean. If you want to use this value * like a condition, you <i>must</i> do a null check before. * * @param qualifiedName The fully qualified property name for the Boolean. * * @return The value of the property as a Boolean, or null if the property * does not exist. */ public Boolean getBooleanPropertyValue(String qualifiedName) { AbstractField prop = getAbstractProperty(qualifiedName); if (prop != null) { if (prop instanceof BooleanType) { return ((BooleanType) prop).getValue(); } else { throw new IllegalArgumentException("Property asked is not a Boolean Property"); } } return null; }
/** * Get the value of the property as a Boolean. If you want to use this value * like a condition, you <i>must</i> do a null check before. * * @param qualifiedName The fully qualified property name for the Boolean. * * @return The value of the property as a Boolean, or null if the property * does not exist. */ public Boolean getBooleanPropertyValue(String qualifiedName) { AbstractField prop = getAbstractProperty(qualifiedName); if (prop != null) { if (prop instanceof BooleanType) { return ((BooleanType) prop).getValue(); } else { throw new IllegalArgumentException("Property asked is not a Boolean Property"); } } return null; }
if (marked != null && !marked.getValue())
if (marked != null && !marked.getValue())