summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8b12104)
import javax.jcr.NodeIterator;
import javax.jcr.Property;
import javax.jcr.PropertyIterator;
import javax.jcr.NodeIterator;
import javax.jcr.Property;
import javax.jcr.PropertyIterator;
+import javax.jcr.PropertyType;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
import javax.jcr.RepositoryFactory;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
import javax.jcr.RepositoryFactory;
NodeIterator it = node.getNodes();
while (it.hasNext()) {
Node childNode = it.nextNode();
NodeIterator it = node.getNodes();
while (it.hasNext()) {
Node childNode = it.nextNode();
}
// Then output the properties
PropertyIterator properties = node.getProperties();
// log.debug("Property are : ");
}
// Then output the properties
PropertyIterator properties = node.getProperties();
// log.debug("Property are : ");
- while (properties.hasNext()) {
+ properties: while (properties.hasNext()) {
Property property = properties.nextProperty();
Property property = properties.nextProperty();
+ if (property.getType() == PropertyType.BINARY)
+ continue properties;// skip
if (property.getDefinition().isMultiple()) {
// A multi-valued property, print all values
Value[] values = property.getValues();
if (property.getDefinition().isMultiple()) {
// A multi-valued property, print all values
Value[] values = property.getValues();
public JcrTabularRowIterator(Node tableNode) {
try {
public JcrTabularRowIterator(Node tableNode) {
try {
- Node contentNode = tableNode.getNode(Property.JCR_CONTENT);
for (NodeIterator it = tableNode.getNodes(); it.hasNext();) {
Node node = it.nextNode();
if (node.isNodeType(ArgeoTypes.ARGEO_COLUMN)) {
for (NodeIterator it = tableNode.getNodes(); it.hasNext();) {
Node node = it.nextNode();
if (node.isNodeType(ArgeoTypes.ARGEO_COLUMN)) {
TabularColumn tc = new TabularColumn(node.getProperty(
Property.JCR_TITLE).getString(), type);
header.add(tc);
TabularColumn tc = new TabularColumn(node.getProperty(
Property.JCR_TITLE).getString(), type);
header.add(tc);
- // } else if (node.getName().equals(Property.JCR_CONTENT)) {
- // contentNode = node;
- // should not happen since content is mandatory
- assert contentNode != null;
-
+ Node contentNode = tableNode.getNode(Property.JCR_CONTENT);
if (contentNode.isNodeType(ArgeoTypes.ARGEO_CSV)) {
textLines = new ArrayBlockingQueue<List<String>>(1000);
csvParser = new CsvParser() {
if (contentNode.isNodeType(ArgeoTypes.ARGEO_CSV)) {
textLines = new ArrayBlockingQueue<List<String>>(1000);
csvParser = new CsvParser() {
return currentRowNumber;
}
return currentRowNumber;
}
+ public List<TabularColumn> getHeader() {
+ return header;
+ }
+