public String getXPath() { StringBuilder xpath = new StringBuilder(); Action action; Iterator itr = _actions.iterator(); // Skip variable actions since they are not part of the xpath // until we reach the first xpath action. // The first xpath action maps to the root of an xml document. do action = (Action) itr.next(); while (action.op != Action.GET_XPATH); // Skip XmlRootElement: // We can't rely on the accuracy of the name of the root element, // because it could be set to some default by JAXB XML Binding. // The caller(DBDictionary) should start with "/*" or "/*/", // we build the remaining xpath that follows the root element. while (itr.hasNext()) { action = (Action) itr.next(); if (((XMLMetaData) action.data).getXmlname() != null) xpath.append(((XMLMetaData) action.data).getXmlname()); else xpath.append("*"); if (itr.hasNext()) xpath.append("/"); } return xpath.toString(); }
public String getXPath() { StringBuilder xpath = new StringBuilder(); Action action; Iterator itr = _actions.iterator(); // Skip variable actions since they are not part of the xpath // until we reach the first xpath action. // The first xpath action maps to the root of an xml document. do action = (Action) itr.next(); while (action.op != Action.GET_XPATH); // Skip XmlRootElement: // We can't rely on the accuracy of the name of the root element, // because it could be set to some default by JAXB XML Binding. // The caller(DBDictionary) should start with "/*" or "/*/", // we build the remaining xpath that follows the root element. while (itr.hasNext()) { action = (Action) itr.next(); if (((XMLMetaData) action.data).getXmlname() != null) xpath.append(((XMLMetaData) action.data).getXmlname()); else xpath.append("*"); if (itr.hasNext()) xpath.append("/"); } return xpath.toString(); }
public String getXPath() { StringBuilder xpath = new StringBuilder(); Action action; Iterator itr = _actions.iterator(); // Skip variable actions since they are not part of the xpath // until we reach the first xpath action. // The first xpath action maps to the root of an xml document. do action = (Action) itr.next(); while (action.op != Action.GET_XPATH); // Skip XmlRootElement: // We can't rely on the accuracy of the name of the root element, // because it could be set to some default by JAXB XML Binding. // The caller(DBDictionary) should start with "/*" or "/*/", // we build the remaining xpath that follows the root element. while (itr.hasNext()) { action = (Action) itr.next(); if (((XMLMetaData) action.data).getXmlname() != null) xpath.append(((XMLMetaData) action.data).getXmlname()); else xpath.append("*"); if (itr.hasNext()) xpath.append("/"); } return xpath.toString(); }
public String getXPath() { StringBuffer xpath = new StringBuffer(); Action action; Iterator itr = _actions.iterator(); // Skip variable actions since they are not part of the xpath // until we reach the first xpath action. // The first xpath action maps to the root of an xml document. do action = (Action) itr.next(); while (action.op != Action.GET_XPATH); // Skip XmlRootElement: // We can't rely on the accuracy of the name of the root element, // because it could be set to some default by JAXB XML Binding. // The caller(DBDictionary) should start with "/*" or "/*/", // we build the remaining xpath that follows the root element. while (itr.hasNext()) { action = (Action) itr.next(); if (((XMLMetaData) action.data).getXmlname() != null) xpath.append(((XMLMetaData) action.data).getXmlname()); else xpath.append("*"); if (itr.hasNext()) xpath.append("/"); } return xpath.toString(); }
public String getXPath() { StringBuilder xpath = new StringBuilder(); Action action; Iterator itr = _actions.iterator(); // Skip variable actions since they are not part of the xpath // until we reach the first xpath action. // The first xpath action maps to the root of an xml document. do action = (Action) itr.next(); while (action.op != Action.GET_XPATH); // Skip XmlRootElement: // We can't rely on the accuracy of the name of the root element, // because it could be set to some default by JAXB XML Binding. // The caller(DBDictionary) should start with "/*" or "/*/", // we build the remaining xpath that follows the root element. while (itr.hasNext()) { action = (Action) itr.next(); if (((XMLMetaData) action.data).getXmlname() != null) xpath.append(((XMLMetaData) action.data).getXmlname()); else xpath.append("*"); if (itr.hasNext()) xpath.append("/"); } return xpath.toString(); }