@Override public boolean samePrefixMappingAs(PrefixMapping other) { return this.prefixes.samePrefixMappingAs(other); }
private boolean sameMapping(PrefixMapping pmapExpected, PrefixMapping pmap) { return pmapExpected.samePrefixMappingAs(pmap) ; }
@Override public boolean samePrefixMappingAs( PrefixMapping other ) { return getPrefixMapping().samePrefixMappingAs( other ); }
@Override public boolean samePrefixMappingAs(PrefixMapping other) { if ( other == null ) return false ; if ( other instanceof PrefixMapping2 ) { PrefixMapping2 other2 = (PrefixMapping2)other ; return this.pmapGlobal.samePrefixMappingAs(other2.pmapGlobal) && this.pmapLocal.samePrefixMappingAs(other2.pmapLocal) ; } // Do by map copy. return getNsPrefixMap().equals( other.getNsPrefixMap() ); } }
@Override public boolean samePrefixMappingAs( PrefixMapping other ) { return getPrefixMapping().samePrefixMappingAs( other ); }
private boolean sameMapping(PrefixMapping pmapExpected, PrefixMapping pmap) { return pmapExpected.samePrefixMappingAs(pmap) ; }
@Override public boolean samePrefixMappingAs(final PrefixMapping other) throws ReadDeniedException, AuthenticationRequiredException { checkRead(); return holder.getBaseItem().samePrefixMappingAs(other); }
protected void assertSamePrefixMapping( PrefixMapping wanted, PrefixMapping got ) { if (!wanted.samePrefixMappingAs( got )) fail( "wanted: " + wanted + " but got: " + got ); }
protected void assertSamePrefixMapping( PrefixMapping wanted, PrefixMapping got ) { if (!wanted.samePrefixMappingAs( got )) fail( "wanted: " + wanted + " but got: " + got ); }
protected void testEquals( String S, String T, boolean expected, PrefixMapping A, PrefixMapping B ) { fill( A, S ); fill( B, T ); String title = "usual: '" + S + "', testing: '" + T + "', should be " + (expected ? "equal" : "different"); assertEquals( title, expected, A.samePrefixMappingAs( B ) ); assertEquals( title, expected, B.samePrefixMappingAs( A ) ); }
public static void assertEquals( PrefixMapping wanted, Object got ) { if (got instanceof PrefixMapping && wanted.samePrefixMappingAs( (PrefixMapping) got )) pass(); else fail( "expected " + wanted + " but was: " + got ); }
protected void testEquals( String S, String T, boolean expected, PrefixMapping A, PrefixMapping B ) { fill( A, S ); fill( B, T ); String title = "usual: '" + S + "', testing: '" + T + "', should be " + (expected ? "equal" : "different"); assertEquals( title, expected, A.samePrefixMappingAs( B ) ); assertEquals( title, expected, B.samePrefixMappingAs( A ) ); }
public static void assertEquals( PrefixMapping wanted, Object got ) { if (got instanceof PrefixMapping && wanted.samePrefixMappingAs( (PrefixMapping) got )) pass(); else fail( "expected " + wanted + " but was: " + got ); }
/** Test whether a Prologue will perform the same as this one. */ public boolean samePrologue(Prologue other) { // Prologue are mutable and superclasses so .equals is left as the default. String base1 = explicitlySetBaseURI() ? getBaseURI() : null ; String base2 = other.explicitlySetBaseURI() ? other.getBaseURI() : null ; if (! Objects.equals(base1, base2) ) return false ; if ( getPrefixMapping() == null && other.getPrefixMapping() == null ) return true ; if ( getPrefixMapping() == null ) return false ; return getPrefixMapping().samePrefixMappingAs(other.getPrefixMapping()) ; }