Tabnine Logo
Relationship.setRelationshipType
Code IndexAdd Tabnine to your IDE (free)

How to use
setRelationshipType
method
in
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Relationship

Best Java code snippets using org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Relationship.setRelationshipType (Showing top 5 results out of 315)

origin: org.artificer/artificer-common

relationship.setRelationshipType(relationshipType);
artifact.getRelationship().add(relationship);
origin: org.overlord.sramp/s-ramp-common

/**
 * Adds a new generic {@link Relationship} to the artifact.
 * @param artifact
 * @param relationshipType
 * @param targetUUID
 * @return the created {@link Relationship}
 */
public static Relationship addGenericRelationship(BaseArtifactType artifact, String relationshipType, String targetUUID) {
  Relationship relationship = null;
  for (Relationship r : artifact.getRelationship()) {
    if (r.getRelationshipType().equals(relationshipType)) {
      relationship = r;
      break;
    }
  }
  if (relationship == null) {
    relationship = new Relationship();
    relationship.setRelationshipType(relationshipType);
    artifact.getRelationship().add(relationship);
  }
  // TODO check for duplicates first?
  if (targetUUID != null) {
    Target target = new Target();
    target.setValue(targetUUID);
    relationship.getRelationshipTarget().add(target);
  }
  return relationship;
}
origin: org.artificer/artificer-repository-hibernate

private void visitGenericRelationships(BaseArtifactType srampArtifact) throws Exception {
  for (ArtificerRelationship artificerRelationship : artificerArtifact.getRelationships()) {
    if (artificerRelationship.getType() == RelationshipType.GENERIC) {
      Relationship srampRelationship = new Relationship();
      srampRelationship.setRelationshipType(artificerRelationship.getName());
      for (ArtificerTarget artificerTarget : artificerRelationship.getTargets()) {
        Target srampTarget = createTarget(Target.class, artificerTarget);
        srampRelationship.getRelationshipTarget().add(srampTarget);
      }
      setOtherAttributes(artificerRelationship.getOtherAttributes(), srampRelationship.getOtherAttributes());
      srampArtifact.getRelationship().add(srampRelationship);
    }
  }
}
origin: org.overlord.sramp/s-ramp-repository-jcr

  continue;
Relationship relationship = new Relationship();
relationship.setRelationshipType(rtype);
if (rNode.hasProperty("sramp:relationshipTarget")) { //$NON-NLS-1$
  Property property = rNode.getProperty("sramp:relationshipTarget"); //$NON-NLS-1$
origin: org.overlord.sramp/s-ramp-api

relationship.setRelationshipType("similarXsds");
Target relationshipTarget = new Target();
relationshipTarget.setValue("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa6b");
org.oasis_open.docs.s_ramp.ns.s_ramp_v1RelationshipsetRelationshipType

Javadoc

Sets the value of the relationshipType property.

Popular methods of Relationship

  • getRelationshipTarget
    Gets the value of the relationshipTarget property. This accessor method returns a reference to the l
  • <init>
  • getRelationshipType
    Gets the value of the relationshipType property.
  • getOtherAttributes
    Gets a map that contains attributes that aren't bound to any typed property on this class. the map i

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Join (org.hibernate.mapping)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
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