@Test public void shouldCreateNameWithBlankPrefixAndBlankLocalName() { name = nameFactory.create(":"); assertThat(name.getNamespaceUri(), is("")); assertThat(name.getLocalName(), is("")); assertThat(name.getString(NO_OP_ENCODER), is("")); }
@Override public Name create( String value ) { return create(value, getDecoder()); }
NameValueFactory extends AbstractValueFactory<Name> implements NameFactory { @Override public Name create( String value ) { return create(value, getDecoder()); } }
NameValueFactory extends AbstractValueFactory<Name> implements NameFactory { @Override public Name create( String value ) { return create(value, getDecoder()); } NameValueFactory( NamespaceRegistry.Holder namespaceRegistryHolder,
                             TextDecoder decoder,
                             ValueFactories factories ); }
NameValueFactory extends AbstractValueFactory<Name> implements NameFactory { @Override public Name create( String value ) { return create(value, getDecoder()); } NameValueFactory( NamespaceRegistry.Holder namespaceRegistryHolder,
                             TextDecoder decoder,
                             ValueFactories factories ); @Override NameFactory with( ValueFactories valueFactories ); @Override NameFactory with( org.modeshape.jcr.value.NamespaceRegistry.Holder namespaceRegistryHolder ); @Override Name create( String value ); @Override Name create( String value,
                        TextDecoder decoder ); @Override Name create( String namespaceUri,
                        String localName ); @Override Name create( String namespaceUri,
                        String localName,
                        TextDecoder decoder ); @Override Name create( int value ); @Override Name create( long value ); @Override Name create( boolean value ); @Override Name create( float value ); @Override Name create( double value ); @Override Name create( BigDecimal value ); @Override Name create( Calendar value ); @Override Name create( Date value ); @Override Name create( DateTime value ); @Override Name create( Name value ); @Override Name create( Path value ); @Override Name create( Path.Segment segment ); @Override Name create( Reference value ); @Override Name create( URI value ); @Override Name create( UUID value ); @Override Name create( NodeKey value ); @Override Name create( byte[] value ); @Override Name create( BinaryValue value ); @Override Name create( InputStream stream ); @Override NamespaceRegistry getNamespaceRegistry(); @Override Name[] createEmptyArray( int length ); }
NameValueFactory extends AbstractValueFactory<Name> implements NameFactory { @Override public Name create( String value ) { return create(value, getDecoder()); } NameValueFactory( NamespaceRegistry.Holder namespaceRegistryHolder,
                             TextDecoder decoder,
                             ValueFactories factories ); @Override NameFactory with( ValueFactories valueFactories ); @Override NameFactory with( org.modeshape.jcr.value.NamespaceRegistry.Holder namespaceRegistryHolder ); @Override Name create( String value ); @Override Name create( String value,
                        TextDecoder decoder ); @Override Name create( String namespaceUri,
                        String localName ); @Override Name create( String namespaceUri,
                        String localName,
                        TextDecoder decoder ); @Override Name create( int value ); @Override Name create( long value ); @Override Name create( boolean value ); @Override Name create( float value ); @Override Name create( double value ); @Override Name create( BigDecimal value ); @Override Name create( Calendar value ); @Override Name create( Date value ); @Override Name create( DateTime value ); @Override Name create( Name value ); @Override Name create( Path value ); @Override Name create( Path.Segment segment ); @Override Name create( Reference value ); @Override Name create( URI value ); @Override Name create( UUID value ); @Override Name create( NodeKey value ); @Override Name create( byte[] value ); @Override Name create( BinaryValue value ); @Override Name create( InputStream stream ); @Override NamespaceRegistry getNamespaceRegistry(); @Override Name[] createEmptyArray( int length );  }