class BooleanType extends AbstractSimpleProperty
{

    public static final String TRUE = "True";

    public static final String FALSE = "False";

    private boolean booleanValue;

    /**
     * Property Boolean type constructor (namespaceURI is given)
     * 
     * @param metadata
     *            The metadata to attach to this property
     * @param namespaceURI
     *            the namespace URI to associate to this property
     * @param prefix
     *            The prefix to set for this property
     * @param propertyName
     *            The local Name of this property
     * @param value
     *            the value to give
     */
    public BooleanType(XMPMetadata metadata, String namespaceURI, String prefix, String propertyName, Object value)
    {
        super(metadata, namespaceURI, prefix, propertyName, value);
    }

    /**
     * return the property value
     * 
     * @return boolean the property value
     */
    @Override
    public Boolean getValue()
    {
        return booleanValue;
    }

    /**
     * Set value of this property BooleanTypeObject accept String value or a boolean
     * 
     * @param value
     *            The value to set
     * 
     */
    @Override
    public void setValue(Object value)
    {<FILL_FUNCTION_BODY>}

    @Override
    public String getStringValue()
    {
        return booleanValue ? TRUE : FALSE;
    }

}

        if (value instanceof Boolean)
        {
            booleanValue = (Boolean) value;
        }
        else if (value instanceof String)
        {
            // NumberFormatException is thrown (sub of InvalidArgumentException)
            String s = value.toString().trim().toUpperCase();
            if ("TRUE".equals(s))
            {
                booleanValue = true;
            }
            else if ("FALSE".equals(s))
            {
                booleanValue = false;
            }
            else
            {
                // unknown value
                throw new IllegalArgumentException("Not a valid boolean value : '" + value + "'");
            }
        }
        else
        {
            // invalid type of value
            throw new IllegalArgumentException("Value given is not allowed for the Boolean type.");
        }
    
<methods>public void <init>(org.apache.xmpbox.XMPMetadata, java.lang.String, java.lang.String, java.lang.String, java.lang.Object) ,public final java.lang.String getNamespace() ,public java.lang.String getPrefix() ,public java.lang.Object getRawValue() ,public abstract java.lang.String getStringValue() ,public abstract java.lang.Object getValue() ,public abstract void setValue(java.lang.Object) ,public java.lang.String toString() <variables>private final non-sealed java.lang.String namespace,private final non-sealed java.lang.String prefix,private final non-sealed java.lang.Object rawValue