@Test public void testVisitLiteral$languageLiteral() throws Exception { LiteralValueExtractor<String> extractor = LiteralValueExtractor.newInstance(String.class); extractor.visitLiteral(Literals.newTypedLiteral("1",Datatypes.STRING)); assertThat(extractor.getValue(),equalTo(LITERAL_VALUE.toString())); assertThat(extractor.isAvailable(),equalTo(true)); }
@Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } private  LiteralValueExtractor(LiteralAdapter<T> adapter); }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } private  LiteralValueExtractor(LiteralAdapter<T> adapter); @Override void visitLiteral(Literal<?> value); @Override void visitIndividual(Individual<?, ?> value); }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } private  LiteralValueExtractor(LiteralAdapter<T> adapter); @Override void visitLiteral(Literal<?> value); @Override void visitIndividual(Individual<?, ?> value);  }