Tabnine Logo
Instance.setParent
Code IndexAdd Tabnine to your IDE (free)

How to use
setParent
method
in
net.roboconf.core.model.beans.Instance

Best Java code snippets using net.roboconf.core.model.beans.Instance.setParent (Showing top 3 results out of 315)

origin: roboconf/roboconf-platform

/**
 * Inserts a child instance.
 * <p>
 * This method does not check anything.
 * In real implementations, such as in the DM, one should
 * use {@link #tryToInsertChildInstance(AbstractApplication, Instance, Instance)}.
 * </p>
 *
 * @param child a child instance (not null)
 * @param parent a parent instance (not null)
 */
public static void insertChild( Instance parent, Instance child ) {
  child.setParent( parent );
  parent.getChildren().add( child );
}
origin: roboconf/roboconf-platform

if( RoboconfErrorHelpers.containsCriticalErrors( errors )) {
  parentInstance.getChildren().remove( childInstance );
  childInstance.setParent( null );
origin: roboconf/roboconf-platform

@Test
public void testComputeInstancePath() {
  Instance instance1 = new Instance();
  Assert.assertEquals( "/", InstanceHelpers.computeInstancePath( instance1 ));
  instance1.setName( "inst1" );
  Assert.assertEquals( "/inst1", InstanceHelpers.computeInstancePath( instance1 ));
  Instance instance2 = new Instance( "inst2" );
  Assert.assertEquals( "/inst2", InstanceHelpers.computeInstancePath( instance2 ));
  instance1.getChildren().add( instance2 );
  instance2.setParent( instance1 );
  Assert.assertEquals( "/inst1", InstanceHelpers.computeInstancePath( instance1 ));
  Assert.assertEquals( "/inst1/inst2", InstanceHelpers.computeInstancePath( instance2 ));
}
net.roboconf.core.model.beansInstancesetParent

Popular methods of Instance

  • getName
  • getComponent
  • getStatus
  • <init>
  • getImports
  • setStatus
  • component
  • getParent
  • getChildren
  • setName
  • setComponent
  • channel
    Adds a channel in a chain approach.
  • setComponent,
  • channel,
  • name,
  • status,
  • equals,
  • parent,
  • toString

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • From CI to AI: The AI layer in your organization
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