Representation getRepresentationFor( Representation delegate, float score ) { if ( delegate instanceof NodeRepresentation ) { return new ScoredNodeRepresentation( (NodeRepresentation) delegate, score ); } if ( delegate instanceof RelationshipRepresentation ) { return new ScoredRelationshipRepresentation( (RelationshipRepresentation) delegate, score ); } return delegate; }
@Override public String getIdentity() { return getDelegate().getIdentity(); }
@Mapping( "property" ) public ValueRepresentation propertyUriTemplate() { return getDelegate().propertyUriTemplate(); }
Representation getRepresentationFor( Representation delegate, float score ) { if ( delegate instanceof NodeRepresentation ) { return new ScoredNodeRepresentation( (NodeRepresentation) delegate, score ); } if ( delegate instanceof RelationshipRepresentation ) { return new ScoredRelationshipRepresentation( (RelationshipRepresentation) delegate, score ); } return delegate; }
@Mapping( "type" ) public ValueRepresentation getType() { return getDelegate().getType(); }
@Mapping( "end" ) public ValueRepresentation endNodeUri() { return getDelegate().endNodeUri(); }
@Mapping( "properties" ) public ValueRepresentation propertiesUri() { return getDelegate().propertiesUri(); }
@Mapping( "start" ) public ValueRepresentation startNodeUri() { return getDelegate().startNodeUri(); }
@Mapping( "metadata" ) public MapRepresentation metadata() { return getDelegate().metadata(); } }
@Override public String getIdentity() { return getDelegate().getIdentity(); }
@Mapping( "end" ) public ValueRepresentation endNodeUri() { return getDelegate().endNodeUri(); }
@Mapping( "property" ) public ValueRepresentation propertyUriTemplate() { return getDelegate().propertyUriTemplate(); }
@Mapping( "type" ) public ValueRepresentation getType() { return getDelegate().getType(); }
@Mapping( "start" ) public ValueRepresentation startNodeUri() { return getDelegate().startNodeUri(); }
@Mapping( "properties" ) public ValueRepresentation propertiesUri() { return getDelegate().propertiesUri(); }
@Mapping( "metadata" ) public MapRepresentation metadata() { return getDelegate().metadata(); } }