Examples of PropertyEntry


Examples of org.apache.jackrabbit.jcr2spi.hierarchy.PropertyEntry

    /**
     * @see Node#hasProperty(String)
     */
    public boolean hasProperty(String relPath) throws RepositoryException {
        checkStatus();
        PropertyEntry childEntry = resolveRelativePropertyPath(relPath);
        return (childEntry != null) && getItemManager().itemExists(childEntry);
    }
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.hierarchy.PropertyEntry

        if (getNodeState().getStatus() == Status.EXISTING) {
            // jcr:mixinTypes must correspond to the mixins present on the nodestate.
            mixinValue = getNodeState().getMixinTypeNames();
        } else {
            try {
                PropertyEntry pe = getNodeEntry().getPropertyEntry(NameConstants.JCR_MIXINTYPES);
                if (pe != null) {
                    // prop entry exists (and ev. has been transiently mod.)
                    // -> retrieve mixin types from prop
                    mixinValue = StateUtility.getMixinNames(pe.getPropertyState());
                } else {
                    // prop entry has not been loaded yet -> not modified
                    mixinValue = getNodeState().getMixinTypeNames();
                }
            } catch (RepositoryException e) {
View Full Code Here

Examples of org.apache.karaf.eik.workbench.ui.views.PropertyEntry

                } else {
                    label = LABEL_ERROR;
                }
            }
        } else if (element instanceof PropertyEntry) {
            final PropertyEntry prop = (PropertyEntry) element;

            if (columnIndex == 0) {
                label = prop.getKey();
            } else if (columnIndex == 1) {
                final Object value = prop.getValue();

                if (value == null) {
                    label = LABEL_NULL;
                } else if (value instanceof Object[]) {
                    label = arrayToString((Object[]) value);
View Full Code Here

Examples of org.eclipse.core.internal.properties.PropertyBucket.PropertyEntry

  public synchronized Map getProperties(IResource target) throws CoreException {
    final Map result = new HashMap();
    tree.accept(new PropertyBucket.Visitor() {
      public int visit(Entry entry) {
        PropertyEntry propertyEntry = (PropertyEntry) entry;
        int propertyCount = propertyEntry.getOccurrences();
        for (int i = 0; i < propertyCount; i++)
          result.put(propertyEntry.getPropertyName(i), propertyEntry.getPropertyValue(i));
        return CONTINUE;
      }
    }, target.getFullPath(), BucketTree.DEPTH_ZERO);
    return result;
  }
View Full Code Here

Examples of org.encog.app.analyst.script.prop.PropertyEntry

   * @param name The name of the property.
   * @param value The new value for the property.
   */
  private void validateProperty(final String section,
      final String subSection, final String name, final String value) {
    final PropertyEntry entry = PropertyConstraints.getInstance().getEntry(
        section, subSection, name);
    if (entry == null) {
      throw new AnalystError("Unknown property: "
          + PropertyEntry.dotForm(section, subSection, name));
    }
    entry.validate(section, subSection, name, value);
  }
View Full Code Here

Examples of org.encog.app.analyst.script.prop.PropertyEntry

  public final boolean executeCommand(final String args) {
    final int index = args.indexOf('=');
    final String dots = args.substring(0, index).trim();
    String value = args.substring(index + 1).trim();

    final PropertyEntry entry = PropertyConstraints.getInstance()
        .findEntry(dots);

    if (entry == null) {
      throw new AnalystError("Unknown property: " + args.toUpperCase());
    }

    // strip quotes
    if (value.charAt(0) == '\"') {
      value = value.substring(1);
    }
    if (value.endsWith("\"")) {
      value = value.substring(0, value.length() - 1);
    }

    final String[] cols = dots.split("\\.");
    final String section = cols[0];
    final String subSection = cols[1];
    final String name = cols[2];

    entry.validate(section, subSection, name, value);
    getProp().setProperty(entry.getKey(), value);

    return false;
  }
View Full Code Here

Examples of org.mapstruct.ap.model.source.SourceReference.PropertyEntry

            List<PropertyEntry> propertyEntries = sourceReference.getPropertyEntries();
            if ( propertyEntries.isEmpty() ) {
                return sourceParam.getType();
            }
            else if ( propertyEntries.size() == 1 ) {
                PropertyEntry propertyEntry = propertyEntries.get( 0 );
                return propertyEntry.getType();
            }
            else {
                PropertyEntry lastPropertyEntry = propertyEntries.get( propertyEntries.size() - 1 );
                return lastPropertyEntry.getType();
            }
        }
View Full Code Here

Examples of org.springframework.beans.factory.parsing.PropertyEntry

    String propertyName = ele.getAttribute(NAME_ATTRIBUTE);
    if (!StringUtils.hasLength(propertyName)) {
      error("Tag 'property' must have a 'name' attribute", ele);
      return;
    }
    this.parseState.push(new PropertyEntry(propertyName));
    try {
      if (bd.getPropertyValues().contains(propertyName)) {
        error("Multiple 'property' definitions for property '" + propertyName + "'", ele);
        return;
      }
View Full Code Here

Examples of org.springframework.beans.factory.parsing.PropertyEntry

    String propertyName = ele.getAttribute(NAME_ATTRIBUTE);
    if (!StringUtils.hasLength(propertyName)) {
      error("Tag 'property' must have a 'name' attribute", ele);
      return;
    }
    this.parseState.push(new PropertyEntry(propertyName));
    try {
      if (bd.getPropertyValues().contains(propertyName)) {
        error("Multiple 'property' definitions for property '" + propertyName + "'", ele);
        return;
      }
View Full Code Here

Examples of org.springframework.beans.factory.parsing.PropertyEntry

    String propertyName = ele.getAttribute(NAME_ATTRIBUTE);
    if (!StringUtils.hasLength(propertyName)) {
      error("Tag 'property' must have a 'name' attribute", ele);
      return;
    }
    this.parseState.push(new PropertyEntry(propertyName));
    try {
      if (bd.getPropertyValues().contains(propertyName)) {
        error("Multiple 'property' definitions for property '" + propertyName + "'", ele);
        return;
      }
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.