@Test public void shouldProvideBooleanForString() throws Exception { assertThat(new JcrValue(factories, PropertyType.STRING, "true").getBoolean(), is(true)); assertThat(new JcrValue(factories, PropertyType.STRING, "yes").getBoolean(), is(false)); }
@Override public boolean getBoolean() throws ValueFormatException { try { boolean convertedValue = factories().getBooleanFactory().create(value); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(boolean.class); } }
JcrValue implements javax.jcr.Value { @Override public boolean getBoolean() throws ValueFormatException { try { boolean convertedValue = factories().getBooleanFactory().create(value); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(boolean.class); } } }
JcrValue implements javax.jcr.Value { @Override public boolean getBoolean() throws ValueFormatException { try { boolean convertedValue = factories().getBooleanFactory().create(value); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(boolean.class); } } JcrValue( ValueFactories factories,
              int type,
              Object value );   JcrValue( ValueFactories factories,
              Value value ); }
JcrValue implements javax.jcr.Value { @Override public boolean getBoolean() throws ValueFormatException { try { boolean convertedValue = factories().getBooleanFactory().create(value); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(boolean.class); } } JcrValue( ValueFactories factories,
              int type,
              Object value );   JcrValue( ValueFactories factories,
              Value value ); @Override boolean getBoolean(); @Override Calendar getDate(); @Override BigDecimal getDecimal(); @Override double getDouble(); @Override long getLong(); @Override @SuppressWarnings("deprecation") InputStream getStream(); @Override BinaryValue getBinary(); @Override String getString(); @Override int getType(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); }
JcrValue implements javax.jcr.Value { @Override public boolean getBoolean() throws ValueFormatException { try { boolean convertedValue = factories().getBooleanFactory().create(value); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(boolean.class); } } JcrValue( ValueFactories factories,
              int type,
              Object value );   JcrValue( ValueFactories factories,
              Value value ); @Override boolean getBoolean(); @Override Calendar getDate(); @Override BigDecimal getDecimal(); @Override double getDouble(); @Override long getLong(); @Override @SuppressWarnings("deprecation") InputStream getStream(); @Override BinaryValue getBinary(); @Override String getString(); @Override int getType(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }