@Test public void shouldUseDelimiterEncoderToEncodeDelimiterBetweenPrefixAndLocalPart() { encoder = new Jsr283Encoder(); name = new BasicName(ModeShapeLexicon.Namespace.URI, "some:name:with:colons"); assertThat(name.getString(namespaceRegistry, encoder, delimiterEncoder), is("mode\\:some\uf03aname\uf03awith\uf03acolons")); assertThat(name.getString(null, encoder, delimiterEncoder), is("mode:some\uf03aname\uf03awith\uf03acolons")); }
@Override public String getString() { return getString(Path.DEFAULT_ENCODER); }
BasicName implements Name { @Override public String getString() { return getString(Path.DEFAULT_ENCODER); } }
BasicName implements Name { @Override public String getString() { return getString(Path.DEFAULT_ENCODER); } BasicName( String namespaceUri,
                      String localName ); }
BasicName implements Name { @Override public String getString() { return getString(Path.DEFAULT_ENCODER); } BasicName( String namespaceUri,
                      String localName ); @Override String getLocalName(); @Override String getNamespaceUri(); @Override String getString(); @Override String getString( TextEncoder encoder ); @Override String getString( NamespaceRegistry namespaceRegistry ); @Override String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder ); @Override String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder,
                             TextEncoder delimiterEncoder ); @Override int compareTo( Name that ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); }
BasicName implements Name { @Override public String getString() { return getString(Path.DEFAULT_ENCODER); } BasicName( String namespaceUri,
                      String localName ); @Override String getLocalName(); @Override String getNamespaceUri(); @Override String getString(); @Override String getString( TextEncoder encoder ); @Override String getString( NamespaceRegistry namespaceRegistry ); @Override String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder ); @Override String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder,
                             TextEncoder delimiterEncoder ); @Override int compareTo( Name that ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }