Tabnine Logo
EntityView.getExtension
Code IndexAdd Tabnine to your IDE (free)

How to use
getExtension
method
in
org.sakaiproject.entitybroker.EntityView

Best Java code snippets using org.sakaiproject.entitybroker.EntityView.getExtension (Showing top 3 results out of 315)

origin: sakaiproject/sakai

actionReturn.format = entityView.getExtension();
if (actionReturn.encoding == null || actionReturn.mimeType == null) {
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

actionReturn.format = entityView.getExtension();
if (actionReturn.encoding == null || actionReturn.mimeType == null) {
origin: sakaiproject/sakai

/**
 * Makes a copy of an EntityView which can be changed independently
 * @param ev any EntityView
 * @return the copy
 * @throws IllegalArgumentException if the input is null OR not completely constructed
 */
public static EntityView copy(EntityView ev) {
  if (ev == null) {
    throw new IllegalArgumentException("input entity view must not be null");
  }
  if (ev.viewKey == null || ev.entityReference == null) {
    throw new IllegalArgumentException("input entity view must be completely constructed");         
  }
  EntityView togo = new EntityView();
  EntityReference ref = ev.getEntityReference();
  togo.setEntityReference( new EntityReference(ref.getPrefix(), ref.getId() == null ? "" : ref.getId()) );
  togo.preloadParseTemplates( ev.getAnazlyzedTemplates() );
  togo.setExtension( ev.getExtension() );
  togo.setViewKey( ev.getViewKey() );
  return togo;
}
org.sakaiproject.entitybrokerEntityViewgetExtension

Javadoc

The extension for this view which defines the type of data that will be returned for this view, examples: html, xml, json NOTE: you should assume html return format when this is null

Popular methods of EntityView

  • getEntityReference
  • getOriginalEntityUrl
  • setViewKey
  • <init>
  • getEntityURL
  • getViewKey
  • setEntityReference
  • setExtension
  • copy
  • getFormat
  • loadParseTemplates
    Override this method if creating a custom EntityView object
  • parseEntityURL
    Used to build this object after it has already been created (typically so custom templates can be in
  • loadParseTemplates,
  • parseEntityURL,
  • setMethod,
  • toString,
  • checkEntityURL,
  • getAnazlyzedTemplates,
  • getMethod,
  • getParseTemplate,
  • getParseTemplates

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Notification (javax.management)
  • JOptionPane (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now