@Test public void ToString() throws SecurityException, NoSuchMethodException { Configuration configuration = new DefaultConfiguration(TEST.NS, MappedPathTest.class); MappedClass mappedClass = configuration.getMappedClass(MappedPathTest.class); MethodProperty property = new MethodProperty(MappedPathTest.class.getMethod("getProperty"), mappedClass); MappedPredicate predicate = new MappedPredicate(TEST.NS, new DummyPredicate(RDF.type), null); MappedPath path = new MappedPath(property, Collections.<MappedPredicate> singletonList(predicate), false); assertEquals("public java.lang.String com.mysema.rdfbean.object.MappedPathTest.getProperty() { http: path.toString()); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(mappedProperty.toString()); sb.append(" {"); boolean first = true; for (MappedPredicate predicate : predicatePath) { sb.append(' '); if (predicate.inv()) { sb.append('^'); } else if (!first) { sb.append('.'); } sb.append(predicate.toString()); first = false; } sb.append(" }"); return sb.toString(); }
MappedPath { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(mappedProperty.toString()); sb.append(" {"); boolean first = true; for (MappedPredicate predicate : predicatePath) { sb.append(' '); if (predicate.inv()) { sb.append('^'); } else if (!first) { sb.append('.'); } sb.append(predicate.toString()); first = false; } sb.append(" }"); return sb.toString(); } }
MappedPath { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(mappedProperty.toString()); sb.append(" {"); boolean first = true; for (MappedPredicate predicate : predicatePath) { sb.append(' '); if (predicate.inv()) { sb.append('^'); } else if (!first) { sb.append('.'); } sb.append(predicate.toString()); first = false; } sb.append(" }"); return sb.toString(); } MappedPath(MappedProperty<?> property,
            List<MappedPredicate> predicatePath,
            boolean inherited); }
MappedPath { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(mappedProperty.toString()); sb.append(" {"); boolean first = true; for (MappedPredicate predicate : predicatePath) { sb.append(' '); if (predicate.inv()) { sb.append('^'); } else if (!first) { sb.append('.'); } sb.append(predicate.toString()); first = false; } sb.append(" }"); return sb.toString(); } MappedPath(MappedProperty<?> property,
            List<MappedPredicate> predicatePath,
            boolean inherited); MappedPredicate get(int i); MappedProperty<?> getMappedProperty(); String getName(); List<MappedPredicate> getPredicatePath(); boolean isConstructorParameter(); boolean isIgnoreInvalid(); boolean isWildcard(); static boolean isWildcard(Class<?> type); boolean isClassReference(); boolean isReference(); boolean isInverse(int index); boolean isSimpleProperty(); int size(); @Override String toString(); void validate(); int getOrder(); boolean isInherited(); }
MappedPath { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(mappedProperty.toString()); sb.append(" {"); boolean first = true; for (MappedPredicate predicate : predicatePath) { sb.append(' '); if (predicate.inv()) { sb.append('^'); } else if (!first) { sb.append('.'); } sb.append(predicate.toString()); first = false; } sb.append(" }"); return sb.toString(); } MappedPath(MappedProperty<?> property,
            List<MappedPredicate> predicatePath,
            boolean inherited); MappedPredicate get(int i); MappedProperty<?> getMappedProperty(); String getName(); List<MappedPredicate> getPredicatePath(); boolean isConstructorParameter(); boolean isIgnoreInvalid(); boolean isWildcard(); static boolean isWildcard(Class<?> type); boolean isClassReference(); boolean isReference(); boolean isInverse(int index); boolean isSimpleProperty(); int size(); @Override String toString(); void validate(); int getOrder(); boolean isInherited();  }