Package org.sonatype.nexus.capabilities.model

Examples of org.sonatype.nexus.capabilities.model.PropertyXO


    return propertiesMap;
  }

  @Override
  public String property(final String key) {
    final PropertyXO property = getProperty(checkNotNull(key));
    if (property != null) {
      return property.getValue();
    }
    return null;
  }
View Full Code Here


    settings().getCapability().getProperties().remove(getProperty(key));
    return me();
  }

  private PropertyXO getOrCreateProperty(final String key) {
    PropertyXO property = getProperty(key);
    if (property == null) {
      property = new PropertyXO().withKey(key);
      settings().getCapability().getProperties().add(property);
    }
    return property;
  }
View Full Code Here

        .withEnabled(reference.context().isEnabled())
        .withTypeId(reference.context().type().toString());

    if (reference.context().properties() != null) {
      for (final Map.Entry<String, String> entry : reference.context().properties().entrySet()) {
        capability.getProperties().add(new PropertyXO().withKey(entry.getKey()).withValue(entry.getValue()));
      }
    }
    return capability;
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.capabilities.model.PropertyXO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.