Examples of nextProperty()


Examples of com.github.diamond.client.config.PropertiesReader.nextProperty()

  public void load(Reader in, boolean reload) throws ConfigurationRuntimeException {
    Map<String, String> tmpStore = new LinkedHashMap<String, String>();
   
    PropertiesReader reader = new PropertiesReader(in);
    try {
      while (reader.nextProperty()) {
        String key = reader.getPropertyName();
        String value = reader.getPropertyValue();
        tmpStore.put(key, value);
        if(reload) {
          String oldValue = store.remove(key);
View Full Code Here

Examples of com.opensymphony.xwork2.util.PropertiesReader.nextProperty()

    @Override
    public void load(InputStream in) throws IOException {
        Reader reader = new InputStreamReader(in);
        PropertiesReader pr = new PropertiesReader(reader);
        while (pr.nextProperty()) {
            String name = pr.getPropertyName();
            String val = pr.getPropertyValue();
            int line = pr.getLineNumber();
            String desc = convertCommentsToString(pr.getCommentLines());
View Full Code Here

Examples of java.io.PipedInputStream.nextProperty()


               // add properties
               for (PropertyIterator pi = node.getProperties(); pi.hasNext();)
               {
                  Property curProperty = pi.nextProperty();
                  writer.writeStartElement(XML_PROPERTY);
                  writer.writeAttribute(XML_NAME, curProperty.getName());
                  String propertyHref = rootHref + curProperty.getPath();
                  writer.writeAttribute(XML_HREF, propertyHref);
                  writer.writeEndElement();
View Full Code Here

Examples of java.io.PipedInputStream.nextProperty()

               writer.writeAttribute(XML_NAME, node.getName());
               writer.writeAttribute(XML_HREF, rootHref + TextUtil.escape(node.getPath(), '%', true));
               // add properties
               for (PropertyIterator pi = node.getProperties(); pi.hasNext();)
               {
                  Property curProperty = pi.nextProperty();
                  writer.writeStartElement(XML_PROPERTY);
                  writer.writeAttribute(XML_NAME, curProperty.getName());
                  String propertyHref = rootHref + curProperty.getPath();
                  writer.writeAttribute(XML_HREF, propertyHref);
                  writer.writeEndElement();
View Full Code Here

Examples of java.util.Iterator.nextProperty()

    if (!(pl instanceof NumericProperty))
      throw new IllegalArgumentException ("PropertyList must be Numeric to sum values");
    HashMap key2value = new HashMap ();
    Iterator iter = pl.numericIterator();
    while (iter.hasNext()) {
      iter.nextProperty ();
      String key = iter.getKey();
      double val = iter.getNumericValue();
      Double storedValue = (Double)key2value.get (key);
      if (storedValue == null)
        key2value.put (key, new Double (val));
View Full Code Here

Examples of javax.jcr.NodeIterator.nextProperty()

        // Add all matching properties to result
        boolean isMulti = false;
        try {
            PropertyIterator it = node.getProperties(name);
            while (it.hasNext()) {
                Property prop = it.nextProperty();
                if (prop.getDefinition().isMultiple()) {
                    isMulti = true;
                    Value[] values = prop.getValues();
                    for (int i = 0; i < values.length; i++) {
                        items.add(wrap(values[i]));
View Full Code Here

Examples of javax.jcr.NodeIterator.nextProperty()

        // Add all matching properties to result
        try {
            PropertyIterator it = node.getProperties(name);
            while (it.hasNext()) {
                Property prop = it.nextProperty();
                int type = prop.getType();
                if (prop.getDefinition().isMultiple()) {
                    Value[] values = prop.getValues();
                    for (int i=0;i<values.length;i++) {
                        items.add(wrap(values[i]));
View Full Code Here

Examples of javax.jcr.NodeIterator.nextProperty()

        checkLock();

        // update the properties
        PropertyIterator iter = getProperties();
        while (iter.hasNext()) {
            PropertyImpl p = (PropertyImpl) iter.nextProperty();
            if (!srcNode.hasProperty(p.getQName())) {
                p.internalRemove(true);
            }
        }
        iter = srcNode.getProperties();
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

                    memberList.add(createResourceFromLocator(loc));
                }
                // add all property members
                PropertyIterator propIt = n.getProperties();
                while (propIt.hasNext()) {
                    Property prop = propIt.nextProperty();
                    DavResourceLocator loc = getLocatorFromItem(prop);
                    memberList.add(createResourceFromLocator(loc));
                }
            } catch (RepositoryException e) {
                // ignore
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

                node.getSession()
        ));

        PropertyIterator iter = node.getProperties();
        while (iter.hasNext()) {
            PropertyImpl prop = (PropertyImpl) iter.nextProperty();
            events.add(EventState.propertyAdded(
                    (NodeId) node.getId(),
                    node.getPrimaryPath(),
                    prop.getPrimaryPath().getNameElement(),
                    (NodeTypeImpl) node.getPrimaryNodeType(),
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.