Codota Logo
IndirectContainerTemplate.insertedContentRelation
Code IndexAdd Codota to your IDE (free)

How to use
insertedContentRelation
method
in
org.ldp4j.application.kernel.template.IndirectContainerTemplate

Best Java code snippets using org.ldp4j.application.kernel.template.IndirectContainerTemplate.insertedContentRelation (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: ldp4j/ldp4j

  @Override
  public void visitIndirectContainerTemplate(IndirectContainerTemplate template) {
    visitMembershipAwareContainerTemplate(template);
    this.introspector.indirectContainer=true;
    this.introspector.insertedContentRelation=template.insertedContentRelation();
  }
}
origin: ldp4j/ldp4j

@Override
public URI insertedContentRelation() {
  return template().insertedContentRelation();
}
origin: ldp4j/ldp4j

@Test
public void testIndirectContainerTemplate() {
  final TemplateLibrary library=getLibrary();
  ResourceTemplate template = library.findByHandler(BookContainerHandler.class);
  assertThat(template,instanceOf(IndirectContainerTemplate.class));
  assertThat(((IndirectContainerTemplate)template).insertedContentRelation().toString(),equalTo(BookContainerHandler.INSERTED_CONTENT_RELATION));
}
origin: ldp4j/ldp4j

@Override
protected void fillInMetadata(ContentPreferences contentPreferences, Individual<?, ?> individual, Context ctx) {
  super.fillInMetadata(contentPreferences,individual,ctx);
  individual.
    addValue(
      ctx.property(LDP.INSERTED_CONTENT_RELATION),
      ctx.reference(containerTemplate().insertedContentRelation()));
}
origin: ldp4j/ldp4j

@Override
public void visitIndirectContainerTemplate(IndirectContainerTemplate template) {
  TemplateIntrospector introspector = TemplateIntrospector.newInstance(template);
  assertThat(introspector.template(),sameInstance((ResourceTemplate)template));
  assertThat(introspector.isResource(),equalTo(false));
  assertThat(introspector.isContainer(),equalTo(true));
  assertThat(introspector.isBasicContainer(),equalTo(false));
  assertThat(introspector.isMembershipAwareContainer(),equalTo(true));
  assertThat(introspector.isDirectContainer(),equalTo(false));
  assertThat(introspector.isIndirectContainer(),equalTo(true));
  assertThat(introspector.getMembershipPredicate(),equalTo(template.membershipPredicate()));
  assertThat(introspector.getMembershipRelation(),equalTo(template.membershipRelation()));
  assertThat(introspector.getInsertedContentRelation(),equalTo(template.insertedContentRelation()));
}
org.ldp4j.application.kernel.templateIndirectContainerTemplateinsertedContentRelation

Popular methods of IndirectContainerTemplate

  • membershipPredicate
  • membershipRelation

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getExternalFilesDir (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now