/** * {@inheritDoc} * * @see org.modeshape.graph.property.ValueTypeSystem.Factory#asReadableString(java.lang.Object) */ @Override public String asReadableString( Object value ) { return stringValueFactory.create(value); } };
/** * {@inheritDoc} * * @see org.modeshape.graph.query.model.TypeSystem#asString(java.lang.Object) */ public String asString( Object value ) { return stringValueFactory.create(value); }
/** * {@inheritDoc} * * @see org.modeshape.graph.query.model.TypeSystem.TypeFactory#create(java.lang.String) */ public T create( String value ) throws ValueFormatException { return valueFactory.create(value); }
/** * {@inheritDoc} * * @see org.modeshape.graph.query.model.TypeSystem.TypeFactory#create(java.lang.Object) */ public T create( Object value ) throws ValueFormatException { return valueFactory.create(value); }
/** * {@inheritDoc} */ public Object create( String value ) { return this.getStringValueFactory().create(value); }
/** * {@inheritDoc} */ public Object create( String value, TextDecoder decoder ) { return this.getStringValueFactory().create(value, decoder); }
/** * {@inheritDoc} */ public Object create( byte[] value ) { return getBinaryValueFactory().create(value); }
/** * {@inheritDoc} */ public Object create( InputStream stream, long approximateLength ) { return getBinaryValueFactory().create(stream, approximateLength); }
/** * {@inheritDoc} * * @see org.modeshape.graph.property.PathFactory#create(org.modeshape.graph.property.Path, java.lang.String, int) */ public Path create( Path parentPath, String segmentName, int index ) { return create(parentPath, nameValueFactory.create(segmentName), index); }
/** * {@inheritDoc} * * @see org.modeshape.graph.property.ValueFactory#create(org.modeshape.graph.property.Binary) */ public Long create( Binary value ) throws ValueFormatException, IoException { // First create a string and then create the boolean from the string value ... return create(getStringValueFactory().create(value)); }
/** * {@inheritDoc} */ public Name create( InputStream stream, long approximateLength ) throws IoException { // First attempt to create a string from the value, then a double from the string ... return create(getStringValueFactory().create(stream, approximateLength)); }
/** * {@inheritDoc} */ public UUID create( Reader reader, long approximateLength ) throws IoException { // First attempt to create a string from the value, then a double from the string ... return create(getStringValueFactory().create(reader, approximateLength)); }
/** * {@inheritDoc} */ public Boolean create( byte[] value ) { // First create a string and then create the boolean from the string value ... return create(getStringValueFactory().create(value)); }
/** * {@inheritDoc} * * @see org.modeshape.graph.property.ValueFactory#create(org.modeshape.graph.property.Binary) */ public Boolean create( Binary value ) throws ValueFormatException, IoException { // First create a string and then create the boolean from the string value ... return create(getStringValueFactory().create(value)); }
/** * {@inheritDoc} */ public Path create( Reader reader, long approximateLength ) throws IoException { // First attempt to create a string from the value, then a double from the string ... return create(getStringValueFactory().create(reader, approximateLength)); }
/** * {@inheritDoc} */ public Reference create( InputStream stream, long approximateLength ) throws IoException { // First attempt to create a string from the value, then a double from the string ... return create(getStringValueFactory().create(stream, approximateLength)); }
/** * {@inheritDoc} */ public Double create( byte[] value ) { // First attempt to create a string from the value, then a long from the string ... return create(getStringValueFactory().create(value)); }
/** * {@inheritDoc} */ public Long create( InputStream stream, long approximateLength ) throws IoException { // First attempt to create a string from the value, then a long from the string ... return create(getStringValueFactory().create(stream, approximateLength)); }
/** * {@inheritDoc} */ public Boolean create( InputStream stream, long approximateLength ) throws IoException { // First create a string and then create the boolean from the string value ... return create(getStringValueFactory().create(stream, approximateLength)); }
@Override public String getDescription() { Property property = getProperty(ModeShapeLexicon.DESCRIPTION); if (property != null && !property.isEmpty()) { return context.getValueFactories().getStringFactory().create(property.getFirstValue()); } return null; }