Package org.apache.jackrabbit.oak.spi.xml

Examples of org.apache.jackrabbit.oak.spi.xml.PropInfo


            } else {
                if (currentPropMultipleStatus == PropInfo.MultipleStatus.UNKNOWN
                        && currentPropValues.size() != 1) {
                    currentPropMultipleStatus = PropInfo.MultipleStatus.MULTIPLE;
                }
                PropInfo prop = new PropInfo(
                        currentPropName == null ? null : currentPropName.getRepoQualifiedName(),
                        currentPropType,
                        currentPropValues.toArray(new TextValue[currentPropValues.size()]),
                        currentPropMultipleStatus);
                state.props.add(prop);
View Full Code Here


                NodeInfo node =
                        new NodeInfo(helper.getJcrName(NamespaceRegistry.NAMESPACE_JCR, "xmltext"), null, null, null);
                TextValue[] values =
                        new TextValue[]{textHandler};
                ArrayList<PropInfo> props = new ArrayList<PropInfo>();
                props.add(new PropInfo(helper.getJcrName(NamespaceRegistry.NAMESPACE_JCR, "xmlcharacters"),
                        PropertyType.STRING, values));
                // call Importer
                importer.startNode(node, props);
                importer.endNode(node);
View Full Code Here

                    // jcr:uuid
                    if (!attrValue.isEmpty()) {
                        id = attrValue;
                    }
                } else {
                    props.add(new PropInfo(propNameInfo.getRepoQualifiedName(), PropertyType.UNDEFINED, propValues));
                }
            }

            NodeInfo node =
                    new NodeInfo(nameInfo.getRepoQualifiedName(), nodeTypeName, mixinTypes, id);
View Full Code Here

        // process properties

        //TODO remove hack that processes principal name first
        int principalNameIndex = -1;
        for (int k = 0; k < propInfos.size(); k++) {
            PropInfo propInfo = propInfos.get(k);
            if ("rep:principalName".equals(propInfo.getName())) {
                principalNameIndex = k;
                break;
            }
        }
        if (principalNameIndex >= 0) {
View Full Code Here

            } else {
                if (currentPropMultipleStatus == PropInfo.MultipleStatus.UNKNOWN
                        && currentPropValues.size() != 1) {
                    currentPropMultipleStatus = PropInfo.MultipleStatus.MULTIPLE;
                }
                PropInfo prop = new PropInfo(
                        currentPropName == null ? null : currentPropName.getRepoQualifiedName(),
                        currentPropType,
                        currentPropValues.toArray(new TextValue[currentPropValues.size()]),
                        currentPropMultipleStatus);
                state.props.add(prop);
View Full Code Here

                NodeInfo node =
                        new NodeInfo(helper.getJcrName(NamespaceRegistry.NAMESPACE_JCR, "xmltext"), null, null, null);
                TextValue[] values =
                        new TextValue[]{textHandler};
                ArrayList<PropInfo> props = new ArrayList<PropInfo>();
                props.add(new PropInfo(helper.getJcrName(NamespaceRegistry.NAMESPACE_JCR, "xmlcharacters"),
                        PropertyType.STRING, values));
                // call Importer
                importer.startNode(node, props);
                importer.endNode(node);
View Full Code Here

                    // jcr:uuid
                    if (!attrValue.isEmpty()) {
                        id = attrValue;
                    }
                } else {
                    props.add(new PropInfo(propNameInfo.getRepoQualifiedName(), PropertyType.UNDEFINED, propValues));
                }
            }

            NodeInfo node =
                    new NodeInfo(nameInfo.getRepoQualifiedName(), nodeTypeName, mixinTypes, id);
View Full Code Here

                    reader.close();
                }

                NodeInfo node = new NodeInfo(getJcrName(NamespaceRegistry.NAMESPACE_JCR, "xmltext"), null, null, null);
                ArrayList<PropInfo> props = new ArrayList<PropInfo>();
                props.add(new PropInfo(getJcrName(NamespaceRegistry.NAMESPACE_JCR, "xmlcharacters"),
                        PropertyType.STRING, textHandler));
                // call Importer
                importer.startNode(node, props);
                importer.endNode(node);
View Full Code Here

                    // until a way of properly serializing/detecting multi-valued
                    // properties on re-import is found (see JCR-325);
                    // see also DocViewSAXEventGenerator#leavingProperties(Node, int)
                    // TODO proper multi-value serialization support
                    TextValue tv = new StringValue(attrValue, sessionContext.getValueFactory(), currentNamePathMapper());
                    props.add(new PropInfo(propNameInfo.getRepoQualifiedName(), PropertyType.UNDEFINED, tv));
                }
            }

            NodeInfo node = new NodeInfo(nameInfo.getRepoQualifiedName(), nodeTypeName, mixinTypes, id);
            // all information has been collected, now delegate to importer
View Full Code Here

            } else {
                if (currentPropMultipleStatus == PropInfo.MultipleStatus.UNKNOWN
                        && currentPropValues.size() != 1) {
                    currentPropMultipleStatus = PropInfo.MultipleStatus.MULTIPLE;
                }
                PropInfo prop = new PropInfo(
                        currentPropName == null ? null : currentPropName.getRepoQualifiedName(),
                        currentPropType,
                        currentPropValues);
                state.props.add(prop);
            }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.xml.PropInfo

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.