Package org.exist.memtree

Examples of org.exist.memtree.MemTreeBuilder.addAttribute()


                String sizeString = Long.toString(sizeLong);
                String humanSize = getHumanSize(sizeLong, sizeString);

                builder.addAttribute(new QName("size", null, null), sizeString);
                builder.addAttribute(new QName("human-size", null, null), humanSize);
                builder.addAttribute(new QName("modified", null, null), new DateTimeValue(new Date(file.lastModified())).getStringValue());

                if (relDir != null && relDir.length() > 0) {
                    builder.addAttribute(new QName("subdir", null, null), relDir);
                }
View Full Code Here


                builder.addAttribute(new QName("size", null, null), sizeString);
                builder.addAttribute(new QName("human-size", null, null), humanSize);
                builder.addAttribute(new QName("modified", null, null), new DateTimeValue(new Date(file.lastModified())).getStringValue());

                if (relDir != null && relDir.length() > 0) {
                    builder.addAttribute(new QName("subdir", null, null), relDir);
                }

                builder.endElement();

            }
View Full Code Here

                entryType="directory";
            }

            builder.startElement(new QName(entryType, NAMESPACE_URI, PREFIX), null);

            builder.addAttribute(new QName("name", null, null), entry.getName());

            if(entry.isFile()){
                Long sizeLong = entry.length();
                String sizeString = Long.toString(sizeLong);
                String humanSize = getHumanSize(sizeLong, sizeString);
View Full Code Here

            if(entry.isFile()){
                Long sizeLong = entry.length();
                String sizeString = Long.toString(sizeLong);
                String humanSize = getHumanSize(sizeLong, sizeString);

                builder.addAttribute(new QName("size", null, null), sizeString);
                builder.addAttribute(new QName("human-size", null, null), humanSize);
            }

            builder.addAttribute(new QName("modified", null, null),
                    new DateTimeValue(new Date(entry.lastModified())).getStringValue());
View Full Code Here

                Long sizeLong = entry.length();
                String sizeString = Long.toString(sizeLong);
                String humanSize = getHumanSize(sizeLong, sizeString);

                builder.addAttribute(new QName("size", null, null), sizeString);
                builder.addAttribute(new QName("human-size", null, null), humanSize);
            }

            builder.addAttribute(new QName("modified", null, null),
                    new DateTimeValue(new Date(entry.lastModified())).getStringValue());
View Full Code Here

                builder.addAttribute(new QName("size", null, null), sizeString);
                builder.addAttribute(new QName("human-size", null, null), humanSize);
            }

            builder.addAttribute(new QName("modified", null, null),
                    new DateTimeValue(new Date(entry.lastModified())).getStringValue());

            builder.addAttribute(new QName("hidden", null, null),
                    new BooleanValue(entry.isHidden()).getStringValue());
View Full Code Here

            }

            builder.addAttribute(new QName("modified", null, null),
                    new DateTimeValue(new Date(entry.lastModified())).getStringValue());

            builder.addAttribute(new QName("hidden", null, null),
                    new BooleanValue(entry.isHidden()).getStringValue());

            builder.addAttribute(new QName("canRead", null, null),
                    new BooleanValue(entry.canRead()).getStringValue());
View Full Code Here

                    new DateTimeValue(new Date(entry.lastModified())).getStringValue());

            builder.addAttribute(new QName("hidden", null, null),
                    new BooleanValue(entry.isHidden()).getStringValue());

            builder.addAttribute(new QName("canRead", null, null),
                    new BooleanValue(entry.canRead()).getStringValue());

            builder.addAttribute(new QName("canWrite", null, null),
                    new BooleanValue(entry.canWrite()).getStringValue());
View Full Code Here

                    new BooleanValue(entry.isHidden()).getStringValue());

            builder.addAttribute(new QName("canRead", null, null),
                    new BooleanValue(entry.canRead()).getStringValue());

            builder.addAttribute(new QName("canWrite", null, null),
                    new BooleanValue(entry.canWrite()).getStringValue());

            builder.endElement();

        }
View Full Code Here

        if(resultSetPos != 0) {
          // iterate through the result set building an XML document
          builder.startDocument();
           
          builder.startElement(new QName("result", OracleModule.NAMESPACE_URI, OracleModule.PREFIX), null);
          builder.addAttribute(new QName("count", null, null), String.valueOf(-1 ));
           
          resultSet = (ResultSet)statement.getObject(resultSetPos);
           
          ResultSetMetaData rsmd = resultSet.getMetaData();
          int iColumns = rsmd.getColumnCount();
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.