org.wso2.carbon.registry.core.Association.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(68)

本文整理了Java中org.wso2.carbon.registry.core.Association.<init>()方法的一些代码示例,展示了Association.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Association.<init>()方法的具体详情如下:
包路径:org.wso2.carbon.registry.core.Association
类名称:Association
方法名:<init>

Association.<init>介绍

暂无

代码示例

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.extensions

private void identifyAssociationsNew(WSDLInfo wsdlInfo) {
  String wsdlPath = wsdlInfo.getProposedRegistryURL();
  for (String association : wsdlInfo.getSchemaDependencies()) {
    String associatedTo = schemaProcessor.getSchemaAssociationPath(association);
    if (associatedTo != null) {
      associations.add(new Association(wsdlPath,
          associatedTo,
          CommonConstants.DEPENDS));
      associations.add(new Association(associatedTo,
          wsdlPath,
          CommonConstants.USED_BY));
    }
  }
  for (String association : wsdlInfo.getWSDLDependencies()) {
    WSDLInfo info = wsdls.get(association);
    if (info != null) {
      String associatedTo = info.getProposedRegistryURL();
      if (associatedTo != null) {
        associations.add(new Association(wsdlPath,
            associatedTo,
            CommonConstants.DEPENDS));
        associations.add(new Association(associatedTo,
            wsdlPath,
            CommonConstants.USED_BY));
      }
    }
  }
}

代码示例来源:origin: org.wso2.carbon.governance/org.wso2.carbon.governance.registry.extensions

private void identifyAssociationsNew(WSDLInfo wsdlInfo) {
  String wsdlPath = wsdlInfo.getProposedRegistryURL();
  for (String association : wsdlInfo.getSchemaDependencies()) {
    String associatedTo = schemaUriProcessor.getSchemaAssociationPath(association);
    if (associatedTo != null) {
      associations.add(new Association(wsdlPath,
          associatedTo,
          CommonConstants.DEPENDS));
      associations.add(new Association(associatedTo,
          wsdlPath,
          CommonConstants.USED_BY));
    }
  }
  for (String association : wsdlInfo.getWSDLDependencies()) {
    WSDLInfo info = wsdls.get(association);
    if (info != null) {
      String associatedTo = info.getProposedRegistryURL();
      if (associatedTo != null) {
        associations.add(new Association(wsdlPath,
            associatedTo,
            CommonConstants.DEPENDS));
        associations.add(new Association(associatedTo,
            wsdlPath,
            CommonConstants.USED_BY));
      }
    }
  }
}

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.ws.client

public static Association transformWSAssociationToAssociation(WSAssociation wsAsso) {
  return new Association(wsAsso.getSourcePath(),
      wsAsso.getDestinationPath(), wsAsso.getAssociationType());
}

代码示例来源:origin: org.wso2.carbon.governance/org.wso2.carbon.governance.api

GovernanceUtils.getPathsFromPathExpression(target, artifact)) {
if (registry.resourceExists(targetPath)) {
  associationInteger.getAssociations().add(new Association(path, targetPath, type));
} else {
  if (log.isDebugEnabled()) {
  GovernanceUtils.getPathsFromPathExpression(source, artifact)) {
if (registry.resourceExists(sourcePath)) {
  associationInteger.getAssociations().add(new Association(sourcePath, path, type));
} else {
  if (log.isDebugEnabled()) {
  GovernanceUtils.getPathsFromPathExpression(target, artifact)) {
if (registry.resourceExists(targetPath)) {
  associationInteger.getAssociations().add(new Association(path, targetPath, type));
} else {
  if (log.isDebugEnabled()) {
  GovernanceUtils.getPathsFromPathExpression(source, artifact)) {
if (registry.resourceExists(sourcePath)) {
  associationInteger.getAssociations().add(new Association(sourcePath, path, type));
} else {
  if (log.isDebugEnabled()) {

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.extensions

SchemaInfo schemaInfoAssociated = schemas.get(associatedTo);
if (schemaInfoAssociated != null) {
  associations.add(new Association(schemaInfo.getProposedRegistryURL(),
      schemaInfoAssociated.getProposedRegistryURL(),
      CommonConstants.DEPENDS));
  associations.add(new Association(schemaInfoAssociated.getProposedRegistryURL(),
      schemaInfo.getProposedRegistryURL(),
      CommonConstants.USED_BY));

代码示例来源:origin: org.wso2.carbon.governance/org.wso2.carbon.governance.registry.extensions

SchemaInfo schemaInfoAssociated = schemas.get(associatedTo);
if (schemaInfoAssociated != null) {
  associations.add(new Association(schemaInfo.getProposedRegistryURL(),
      schemaInfoAssociated.getProposedRegistryURL(),
      CommonConstants.DEPENDS));
  associations.add(new Association(schemaInfoAssociated.getProposedRegistryURL(),
      schemaInfo.getProposedRegistryURL(),
      CommonConstants.USED_BY));

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.extensions

assocPath = registryBasePath + assocPath;
associationsBuffer.add(new Association(assocPath, xsd,
    CommonConstants.DEPENDS));
associationsBuffer.add(new Association(xsd, assocPath,
    CommonConstants.USED_BY));

代码示例来源:origin: org.wso2.carbon.governance/org.wso2.carbon.governance.api

String target =
    associationElement.getAttributeValue(new QName("target"));
associations.add(new Association(source, target, type));
String target =
    associationElement.getAttributeValue(new QName("target"));
associations.add(new Association(source, target, "depends"));

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.extensions

for (Object association : associations) {
  associatedWSDL = (String)association;
  associationsBuffer.add(new Association(wsdlPath, associatedWSDL,
      CommonConstants.DEPENDS));

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.extensions

for (Object association : associations) {
  associationPath = (String)association;
  associationsBuffer.add(new Association(xsdPath, associationPath, 
      CommonConstants.DEPENDS));

相关文章

微信公众号

最新文章

更多