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

How to use
getOtherAttributes
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.getOtherAttributes (Showing top 13 results out of 315)

origin: org.overlord.sramp/s-ramp-integration-switchyard

relationship.getOtherAttributes().put(UNRESOLVED_REF, name);
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "class:" + node.getAttribute("class")); //$NON-NLS-1$ //$NON-NLS-2$
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "bean:" + node.getAttribute("bean")); //$NON-NLS-1$ //$NON-NLS-2$
origin: org.overlord.sramp/s-ramp-integration-switchyard

if (node.hasAttribute("class")) { //$NON-NLS-1$
  Relationship relationship = SrampModelUtils.addGenericRelationship(transformerArtifact, SwitchYardModel.REL_IMPLEMENTED_BY, null);
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "class:" + node.getAttribute("class")); //$NON-NLS-1$ //$NON-NLS-2$
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "bean:" + node.getAttribute("bean")); //$NON-NLS-1$ //$NON-NLS-2$
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "xslt:" + node.getAttribute("xsltFile")); //$NON-NLS-1$ //$NON-NLS-2$
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "smooks:" + node.getAttribute("config")); //$NON-NLS-1$ //$NON-NLS-2$
  relationship.getOtherAttributes().put(UNRESOLVED_REF, node.getAttribute("from")); //$NON-NLS-1$
  relationship.getOtherAttributes().put(UNRESOLVED_REF, node.getAttribute("to")); //$NON-NLS-1$
origin: org.overlord.sramp/s-ramp-integration-switchyard

String ifaceName = iface.getAttribute("interface"); //$NON-NLS-1$
Relationship relationship = SrampModelUtils.addGenericRelationship(serviceArtifact, SwitchYardModel.REL_IMPLEMENTS, null);
relationship.getOtherAttributes().put(UNRESOLVED_REF, "java:" + ifaceName); //$NON-NLS-1$
String wsdlInfo = iface.getAttribute("interface"); //$NON-NLS-1$
Relationship relationship = SrampModelUtils.addGenericRelationship(serviceArtifact, SwitchYardModel.REL_IMPLEMENTS, null);
relationship.getOtherAttributes().put(UNRESOLVED_REF, "wsdl:" + wsdlInfo); //$NON-NLS-1$
origin: org.artificer/artificer-repository-hibernate

/**
 * Updates the generic artifact relationships.
 * @param artifact
 * @throws Exception
 */
private void updateGenericRelationships(BaseArtifactType artifact) throws Exception {
  for (Relationship relationship : artifact.getRelationship()) {
    if (relationship.getRelationshipTarget().size() > 0) {
      setRelationships(relationship.getRelationshipType(), RelationshipType.GENERIC,
          relationship.getRelationshipTarget(), relationship.getOtherAttributes());
    }
  }
}
origin: org.overlord.sramp/s-ramp-integration-switchyard

/**
 * @see org.overlord.sramp.integration.switchyard.model.SwitchYardArtifactVisitor#visitService(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.ExtendedArtifactType)
 */
@Override
public void visitService(ExtendedArtifactType artifact) {
  // Handle unresolved "implements" relationships
  Relationship relationship = SrampModelUtils.getGenericRelationship(artifact, SwitchYardModel.REL_IMPLEMENTS);
  if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
    String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
    if (ref.startsWith("java:")) { //$NON-NLS-1$
      String refInterfaceName = ref.substring(5);
      BaseArtifactType artifactRef = findJavaInterfaceArtifact(refInterfaceName);
      if (artifactRef != null) {
        Target target = new Target();
        target.setValue(artifactRef.getUuid());
        relationship.getRelationshipTarget().add(target);
      }
    } else if (ref.startsWith("wsdl:")) { //$NON-NLS-1$
      String refWsdl = ref.substring(5);
      BaseArtifactType artifactRef = findWsdlArtifact(refWsdl);
      if (artifactRef != null) {
        Target target = new Target();
        target.setValue(artifactRef.getUuid());
        relationship.getRelationshipTarget().add(target);
      }
    }
  }
}
origin: org.overlord.sramp/s-ramp-integration-switchyard

/**
 * @see org.overlord.sramp.integration.switchyard.model.SwitchYardArtifactVisitor#visitComponentService(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.ExtendedArtifactType)
 */
@Override
public void visitComponentService(ExtendedArtifactType artifact) {
  // Handle unresolved "implements" relationships
  Relationship relationship = SrampModelUtils.getGenericRelationship(artifact, SwitchYardModel.REL_IMPLEMENTS);
  if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
    String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
    if (ref.startsWith("java:")) { //$NON-NLS-1$
      String refInterfaceName = ref.substring(5);
      BaseArtifactType artifactRef = findJavaInterfaceArtifact(refInterfaceName);
      if (artifactRef != null) {
        Target target = new Target();
        target.setValue(artifactRef.getUuid());
        relationship.getRelationshipTarget().add(target);
      }
    } else if (ref.startsWith("wsdl:")) { //$NON-NLS-1$
      String refWsdl = ref.substring(5);
      BaseArtifactType artifactRef = findWsdlArtifact(refWsdl);
      if (artifactRef != null) {
        Target target = new Target();
        target.setValue(artifactRef.getUuid());
        relationship.getRelationshipTarget().add(target);
      }
    }
  }
}
origin: org.overlord.sramp/s-ramp-integration-switchyard

if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
  String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
  if (ref.startsWith("class:")) { //$NON-NLS-1$
    String refClassName = ref.substring(6);
if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
  String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
  if (ref.startsWith("java:")) { //$NON-NLS-1$
    String refInterfaceName = ref.substring(5);
origin: org.overlord.sramp/s-ramp-integration-switchyard

String implClassName = implBean.getAttribute("class"); //$NON-NLS-1$
Relationship relationship = SrampModelUtils.addGenericRelationship(componentArtifact, SwitchYardModel.REL_IMPLEMENTED_BY, null);
relationship.getOtherAttributes().put(UNRESOLVED_REF, "class:" + implClassName); //$NON-NLS-1$
String path = xml.getAttribute("path"); //$NON-NLS-1$
Relationship relationship = SrampModelUtils.addGenericRelationship(componentArtifact, SwitchYardModel.REL_IMPLEMENTED_BY, null);
relationship.getOtherAttributes().put(UNRESOLVED_REF, "camel:" + path); //$NON-NLS-1$
  String ifaceName = iface.getAttribute("interface"); //$NON-NLS-1$
  Relationship relationship = SrampModelUtils.addGenericRelationship(componentArtifact, SwitchYardModel.REL_REFERENCES, null);
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "java:" + ifaceName); //$NON-NLS-1$
  String wsdlInfo = iface.getAttribute("interface"); //$NON-NLS-1$
  Relationship relationship = SrampModelUtils.addGenericRelationship(componentArtifact, SwitchYardModel.REL_REFERENCES, null);
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "wsdl:" + wsdlInfo); //$NON-NLS-1$
  String ifaceName = iface.getAttribute("interface"); //$NON-NLS-1$
  Relationship relationship = SrampModelUtils.addGenericRelationship(componentServiceArtifact, SwitchYardModel.REL_IMPLEMENTS, null);
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "java:" + ifaceName); //$NON-NLS-1$
  String wsdlInfo = iface.getAttribute("interface"); //$NON-NLS-1$
  Relationship relationship = SrampModelUtils.addGenericRelationship(componentServiceArtifact, SwitchYardModel.REL_IMPLEMENTS, null);
  relationship.getOtherAttributes().put(UNRESOLVED_REF, "wsdl:" + wsdlInfo); //$NON-NLS-1$
origin: org.overlord.sramp/s-ramp-integration-switchyard

if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
  String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
  if (ref.startsWith("class:")) { //$NON-NLS-1$
    String refClassName = ref.substring(6);
if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
  String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
  if (ref.startsWith("java:")) { // java class //$NON-NLS-1$
    String refClassName = ref.substring(5);
origin: org.artificer/artificer-common

relationship.getOtherAttributes().putAll(relationshipOtherAttributes);
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-integration-switchyard

if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
  String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
  if (ref.startsWith("class:")) { //$NON-NLS-1$
    String refClassName = ref.substring(6);
if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
  String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
  if (ref.startsWith("java:")) { // java class //$NON-NLS-1$
    String refClassName = ref.substring(5);
if (relationship != null && relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF)) {
  String ref = relationship.getOtherAttributes().remove(SwitchYardXmlDeriver.UNRESOLVED_REF);
  if (ref.startsWith("java:")) { // java class //$NON-NLS-1$
    String refClassName = ref.substring(5);
origin: org.overlord.sramp/s-ramp-integration-switchyard

Relationship relationship = SrampModelUtils.getGenericRelationship(orderService, SwitchYardModel.REL_IMPLEMENTS);
Assert.assertNotNull(relationship);
Assert.assertTrue(relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF));
Assert.assertEquals("wsdl:wsdl/OrderService.wsdl#wsdl.porttype(OrderService)", relationship.getOtherAttributes().get(SwitchYardXmlDeriver.UNRESOLVED_REF)); //$NON-NLS-1$
Assert.assertNotNull(relationship);
Assert.assertTrue(relationship.getRelationshipTarget().isEmpty());
Assert.assertTrue(relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF));
relationship = SrampModelUtils.getGenericRelationship(inventoryServiceComponent, SwitchYardModel.REL_REFERENCES);
Assert.assertNull(relationship);
Assert.assertNotNull(relationship);
Assert.assertTrue(relationship.getRelationshipTarget().isEmpty());
Assert.assertTrue(relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF));
relationship = SrampModelUtils.getGenericRelationship(orderServiceComponent, SwitchYardModel.REL_REFERENCES);
Assert.assertNotNull(relationship);
Assert.assertTrue(relationship.getRelationshipTarget().isEmpty());
Assert.assertTrue(relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF));
relationship = SrampModelUtils.getGenericRelationship(orderService, SwitchYardModel.REL_PROMOTES);
Assert.assertNotNull(relationship);
Assert.assertNotNull(relationship);
Assert.assertTrue(relationship.getRelationshipTarget().isEmpty());
Assert.assertTrue(relationship.getOtherAttributes().containsKey(SwitchYardXmlDeriver.UNRESOLVED_REF));
relationship = SrampModelUtils.getGenericRelationship(camelServiceComponent, SwitchYardModel.REL_REFERENCES);
Assert.assertNull(relationship);
relationship = SrampModelUtils.getGenericRelationship(inventoryServiceComponentSvc, SwitchYardModel.REL_IMPLEMENTS);
Assert.assertNotNull(relationship);
org.oasis_open.docs.s_ramp.ns.s_ramp_v1RelationshipgetOtherAttributes

Javadoc

Gets a map that contains attributes that aren't bound to any typed property on this class.

the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

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.
  • setRelationshipType
    Sets the value of the relationshipType property.

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JOptionPane (javax.swing)
  • 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