/** * Utility method for processing the named property from the given * map of properties. If the property exists, it is removed from the * given map and passed to {@link #exportProperty(Property)}. * The property is ignored if it does not exist. * * @param properties map of properties * @param name property name * @throws RepositoryException if a repository error occurs * @throws SAXException if a SAX error occurs */ private void exportProperty(Map properties, String name) throws RepositoryException, SAXException { Property property = (Property) properties.remove(name); if (property != null) { exportProperty(name, property); } }
/** * Utility method for processing the named property from the given * map of properties. If the property exists, it is removed from the * given map and passed to {@link #exportProperty(Property)}. * The property is ignored if it does not exist. * * @param properties map of properties * @param name property name * @throws RepositoryException if a repository error occurs * @throws SAXException if a SAX error occurs */ private void exportProperty(Map properties, String name) throws RepositoryException, SAXException { Property property = (Property) properties.remove(name); if (property != null) { exportProperty(name, property); } }
/** * Utility method for processing the named property from the given * map of properties. If the property exists, it is removed from the * given map and passed to {@link #exportProperty(Property)}. * The property is ignored if it does not exist. * * @param properties map of properties * @param name property name * @throws RepositoryException if a repository error occurs * @throws SAXException if a SAX error occurs */ private void exportProperty(Map properties, String name) throws RepositoryException, SAXException { Property property = (Property) properties.remove(name); if (property != null) { exportProperty(name, property); } }
exportProperty( NamespaceHelper.JCR, "primaryType", factory.createValue( helper.getJcrName("nt:share"), PropertyType.NAME)); exportProperty( NamespaceHelper.JCR, "uuid", factory.createValue(node.getUUID())); exportProperty(properties, helper.getJcrName("jcr:primaryType")); exportProperty(properties, helper.getJcrName("jcr:mixinTypes")); exportProperty(properties, helper.getJcrName("jcr:uuid")); Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); exportProperty(name, (Property) entry.getValue());
exportProperty( NamespaceHelper.JCR, "primaryType", factory.createValue( helper.getJcrName("nt:share"), PropertyType.NAME)); exportProperty( NamespaceHelper.JCR, "uuid", factory.createValue(node.getUUID())); exportProperty(properties, helper.getJcrName("jcr:primaryType")); exportProperty(properties, helper.getJcrName("jcr:mixinTypes")); exportProperty(properties, helper.getJcrName("jcr:uuid")); Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); exportProperty(name, (Property) entry.getValue());
if (type != PropertyType.BINARY || binary) { if (property.isMultiple()) { exportProperty(uri, local, type, property.getValues()); } else { exportProperty(uri, local, property.getValue()); Value value = factory.createValue("", PropertyType.BINARY); if (property.isMultiple()) { exportProperty(uri, local, type, new Value[] { value }); } else { exportProperty(uri, local, value);
exportProperty( NamespaceHelper.JCR, "primaryType", factory.createValue( helper.getJcrName("nt:share"), PropertyType.NAME)); exportProperty( NamespaceHelper.JCR, "uuid", factory.createValue(node.getUUID())); exportProperty(properties, helper.getJcrName("jcr:primaryType")); exportProperty(properties, helper.getJcrName("jcr:mixinTypes")); exportProperty(properties, helper.getJcrName("jcr:uuid")); Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); exportProperty(name, (Property) entry.getValue());
if (type != PropertyType.BINARY || binary) { if (property.isMultiple()) { exportProperty(uri, local, type, property.getValues()); } else { exportProperty(uri, local, property.getValue()); Value value = factory.createValue("", PropertyType.BINARY); if (property.isMultiple()) { exportProperty(uri, local, type, new Value[] { value }); } else { exportProperty(uri, local, value);
if (type != PropertyType.BINARY || binary) { if (property.isMultiple()) { exportProperty(uri, local, type, property.getValues()); } else { exportProperty(uri, local, property.getValue()); Value value = factory.createValue("", PropertyType.BINARY); if (property.isMultiple()) { exportProperty(uri, local, type, new Value[] { value }); } else { exportProperty(uri, local, value);