@Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { this.elementStack.push(localName); if (FileConstants.FILE_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.fileProperties = new FileProperties(); } if (FileConstants.DIRECTORY_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.directoryProperties = new FileDirectoryProperties(); } }
@Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { this.elementStack.push(localName); if (FileConstants.FILE_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.fileProperties = new FileProperties(); } if (FileConstants.DIRECTORY_ELEMENT.equals(localName)) { this.name = Constants.EMPTY_STRING; this.directoryProperties = new FileDirectoryProperties(); } }
/** * Initializes a new instance of the FileDirectoryAttributes class */ public FileDirectoryAttributes() { this.setMetadata(new HashMap<String, String>()); this.setProperties(new FileDirectoryProperties()); }
/** * Initializes a new instance of the FileDirectoryAttributes class */ public FileDirectoryAttributes() { this.setMetadata(new HashMap<String, String>()); this.setProperties(new FileDirectoryProperties()); }