Examples of DocumentEditor


Examples of org.dykman.dexter.base.DocumentEditor

        String vv = el.getAttribute(alabel);
        String[] bb = parseNs(alabel);
        String namespace = bb[0];

        Class<?> klass = Class.forName(editors.get(alabel));
        DocumentEditor editor = (DocumentEditor) klass.newInstance();
        editor.setPropertyResolver(modulesMap.get(namespace));
        editor.setDexter(this);
        editor.setReference(el.getOwnerDocument(), el);
        editor.edit(namespace,alabel, vv);
        el.removeAttribute(alabel);
      }
    }
  }
View Full Code Here

Examples of org.dykman.dexter.base.DocumentEditor

        String vv = el.getAttribute(alabel);
        String[] bb = parseNs(alabel);
        String namespace = bb[0];

        Class<?> klass = Class.forName(editors.get(alabel));
        DocumentEditor editor = (DocumentEditor) klass.newInstance();
        editor.setPropertyResolver(modulesMap.get(namespace));
        editor.setDexter(this);
        editor.setReference(el.getOwnerDocument(), el);
        editor.edit(namespace,alabel, vv);
        el.removeAttribute(alabel);
      }
    }
  }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

     * @return the editable document; never null
     */
    public static EditableDocument newDocument( Document original ) {
        BasicDocument newDoc = new BasicDocument();
        newDoc.putAll(original);
        return new DocumentEditor(newDoc, DEFAULT_FACTORY);
    }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

     * documents.
     *
     * @return the editable document; never null
     */
    public static EditableDocument newDocument() {
        return new DocumentEditor(new BasicDocument(), DEFAULT_FACTORY);
    }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

     * @param value the value of the initial field in the resulting document
     * @return the editable document; never null
     */
    public static EditableDocument newDocument( String name,
                                                Object value ) {
        return new DocumentEditor(new BasicDocument(name, value), DEFAULT_FACTORY);
    }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

     */
    public static EditableDocument newDocument( String name1,
                                                Object value1,
                                                String name2,
                                                Object value2 ) {
        return new DocumentEditor(new BasicDocument(name1, value1, name2, value2), DEFAULT_FACTORY);
    }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

                                                Object value1,
                                                String name2,
                                                Object value2,
                                                String name3,
                                                Object value3 ) {
        return new DocumentEditor(new BasicDocument(name1, value1, name2, value2, name3, value3), DEFAULT_FACTORY);
    }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

                                                Object value2,
                                                String name3,
                                                Object value3,
                                                String name4,
                                                Object value4 ) {
        return new DocumentEditor(new BasicDocument(name1, value1, name2, value2, name3, value3, name4, value4), DEFAULT_FACTORY);
    }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

        SchematicEntryLiteral literal = (SchematicEntryLiteral)store.get(key);
        if (literal == null) {
            if (!createIfMissing) return null;
            literal = new SchematicEntryLiteral(key);
            store.put(key, literal);
            return new DocumentEditor((MutableDocument)literal.getContent());
        }
        // this makes a copy and puts the new copy into the store ...
        return literal.edit(key, store, shouldAcquireLock(acquireLock));
    }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.DocumentEditor

            lockingCache.lock(key);
        }
        MutableDocument copy = (MutableDocument)value.clone();
        SchematicEntryLiteral newEntry = new SchematicEntryLiteral(copy);
        cache.put(getKey(), newEntry);
        return new DocumentEditor((MutableDocument)newEntry.getContent());
    }
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.