Examples of ItemMetadata


Examples of com.lyncode.xoai.dataprovider.core.ItemMetadata

    private List<ReferenceSet> sets;

    public DSpaceDatabaseItem(Item item, Metadata metadata, List<ReferenceSet> sets)
    {
        this.item = item;
        this.metadata = new ItemMetadata(metadata);
        this.sets = sets;
    }
View Full Code Here

Examples of com.lyncode.xoai.dataprovider.core.ItemMetadata

    @Override
    public ItemMetadata getMetadata()
    {
        if (metadata == null) {
            metadata = new ItemMetadata(unparsedMD);
        }
        return metadata;
    }
View Full Code Here

Examples of org.springframework.boot.configurationprocessor.metadata.ItemMetadata

    }

    @Override
    public boolean matches(Object item) {
      ConfigurationMetadata metadata = (ConfigurationMetadata) item;
      ItemMetadata itemMetadata = getFirstPropertyWithName(metadata, this.name);
      if (itemMetadata == null) {
        return false;
      }
      if (this.type != null && !this.type.equals(itemMetadata.getType())) {
        return false;
      }
      if (this.sourceType != null
          && !this.sourceType.getName().equals(itemMetadata.getSourceType())) {
        return false;
      }
      if (this.defaultValue != null
          && !this.defaultValue.equals(itemMetadata.getDefaultValue())) {
        return false;
      }
      if (this.description != null
          && !this.description.equals(itemMetadata.getDescription())) {
        return false;
      }
      return true;
    }
View Full Code Here

Examples of org.springframework.boot.configurationprocessor.metadata.ItemMetadata

    }

    @Override
    public void describeMismatch(Object item, Description description) {
      ConfigurationMetadata metadata = (ConfigurationMetadata) item;
      ItemMetadata property = getFirstPropertyWithName(metadata, this.name);
      if (property == null) {
        description.appendText("missing property " + this.name);
      }
      else {
        description.appendText("was property ").appendValue(property);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.