@Test( expected = ValueFormatException.class ) public void shouldNotProvideDateForBoolean() throws Exception { value.getDate(); }
@Override public Calendar getDate() throws ValueFormatException { if (value == null) return null; try { Calendar convertedValue = factories().getDateFactory().create(value).toCalendar(); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(Calendar.class); } }
JcrValue implements javax.jcr.Value { @Override public Calendar getDate() throws ValueFormatException { if (value == null) return null; try { Calendar convertedValue = factories().getDateFactory().create(value).toCalendar(); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(Calendar.class); } } }
JcrValue implements javax.jcr.Value { @Override public Calendar getDate() throws ValueFormatException { if (value == null) return null; try { Calendar convertedValue = factories().getDateFactory().create(value).toCalendar(); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(Calendar.class); } } JcrValue( ValueFactories factories,
              int type,
              Object value );   JcrValue( ValueFactories factories,
              Value value ); }
JcrValue implements javax.jcr.Value { @Override public Calendar getDate() throws ValueFormatException { if (value == null) return null; try { Calendar convertedValue = factories().getDateFactory().create(value).toCalendar(); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(Calendar.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 Calendar getDate() throws ValueFormatException { if (value == null) return null; try { Calendar convertedValue = factories().getDateFactory().create(value).toCalendar(); return convertedValue; } catch (RuntimeException error) { throw createValueFormatException(Calendar.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();  }