/*
Copyright (C) 2012-2013 Anton Lobov <zhuravlik> <ahmad200512[at]yandex.ru>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
package zhuravlik.automation.uom;
import com.sun.jna.platform.win32.User32;
import java.util.Iterator;
import org.jaxen.*;
import org.jaxen.saxpath.SAXPathException;
import zhuravlik.automation.util.win32.Win32Object;
public class Win32Navigator implements Navigator {
public Iterator getChildAxisIterator(Object o) throws UnsupportedAxisException {
return ((Win32Object)o).getChildItems().iterator();
}
public Iterator getDescendantAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getParentAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getAncestorAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getFollowingSiblingAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getPrecedingSiblingAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getFollowingAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getPrecedingAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getAttributeAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getNamespaceAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getSelfAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getDescendantOrSelfAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Iterator getAncestorOrSelfAxisIterator(Object o) throws UnsupportedAxisException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Object getDocument(String string) throws FunctionCallException {
//throw new UnsupportedOperationException("Not supported yet.");
return new Win32Object(null);
}
public Object getDocumentNode(Object o) {
//throw new UnsupportedOperationException("Not supported yet.");
return new Win32Object(null);
}
public Object getParentNode(Object o) throws UnsupportedAxisException {
//throw new UnsupportedOperationException("Not supported yet.");
return ((Win32Object)o).getParent();
}
public String getElementNamespaceUri(Object o) {
//throw new UnsupportedOperationException("Not supported yet.");
return "win32";
}
public String getElementName(Object o) {
//throw new UnsupportedOperationException("Not supported yet.");
return ((Win32Object)o).getWndClass();
}
public String getElementQName(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getAttributeNamespaceUri(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getAttributeName(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getAttributeQName(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getProcessingInstructionTarget(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getProcessingInstructionData(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public boolean isDocument(Object o) {
//throw new UnsupportedOperationException("Not supported yet.");
return o instanceof Win32Object;
}
public boolean isElement(Object o) {
//throw new UnsupportedOperationException("Not supported yet.");
return o instanceof Win32Object;
}
public boolean isAttribute(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public boolean isNamespace(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public boolean isComment(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public boolean isText(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public boolean isProcessingInstruction(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getCommentStringValue(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getElementStringValue(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getAttributeStringValue(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getNamespaceStringValue(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getTextStringValue(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String getNamespacePrefix(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public String translateNamespacePrefixToUri(String string, Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
public XPath parseXPath(String string) throws SAXPathException {
throw new UnsupportedOperationException("Not supported yet.");
}
public Object getElementById(Object o, String string) {
throw new UnsupportedOperationException("Not supported yet.");
}
public short getNodeType(Object o) {
throw new UnsupportedOperationException("Not supported yet.");
}
}