Tabnine Logo
CollectionDescriptor.setClassDescriptor
Code IndexAdd Tabnine to your IDE (free)

How to use
setClassDescriptor
method
in
org.intermine.metadata.CollectionDescriptor

Best Java code snippets using org.intermine.metadata.CollectionDescriptor.setClassDescriptor (Showing top 1 results out of 315)

origin: intermine/intermine

public void testSetClassDescriptor() throws Exception {
  ClassDescriptor cld = new ClassDescriptor("Class1", null, false, noAttrs, noRefs, noColls);
  CollectionDescriptor cod = new CollectionDescriptor("name", "String", null);
  try {
    cod.setClassDescriptor(cld);
  } catch (IllegalStateException e) {
    fail("should have been able set ClassDescriptor");
  }
  try {
    cod.setClassDescriptor(cld);
    fail("Expected: IllegalStateException, ClassDescriptor already set");
  } catch (IllegalStateException e) {
  }
}
org.intermine.metadataCollectionDescriptorsetClassDescriptor

Popular methods of CollectionDescriptor

  • <init>
    Construct a CollectionDescriptor. name and referencedType may not be null.
  • getReferencedClassDescriptor
  • getReverseReferenceDescriptor
  • getClassDescriptor
  • getName
  • getReferencedClassName
  • getReverseReferenceFieldName
  • relationType
  • findReferencedDescriptor
  • equals
  • hashCode
  • toString
  • hashCode,
  • toString

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best plugins for Eclipse
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