public class MigrateH1to3Tool extends Object
Modifier and Type | Field and Description |
---|---|
protected static DocumentBuilder |
DOCUMENT_BUILDER |
protected Document |
sourceOrderXmlDom |
Constructor and Description |
---|
MigrateH1to3Tool() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
flattenH1Order(Document h1order)
Given a Document, return a Map of all non-blank simple text
nodes, keyed by the pseudo-XPath to their parent element.
|
protected Map<String,String> |
getMigrateMap() |
protected static String |
getPseudoXpath(Node node)
Given a node, give back an XPath-like string that addresses it.
|
void |
instanceMain(String[] args) |
protected void |
listProblems(List<String> problems) |
static void |
main(String[] args) |
protected void |
printHelp() |
protected void |
splitH1userAgent(String userAgent,
StringBuilder sb) |
protected Document sourceOrderXmlDom
protected static DocumentBuilder DOCUMENT_BUILDER
protected void printHelp()
protected void splitH1userAgent(String userAgent, StringBuilder sb)
protected Map<String,String> getMigrateMap() throws IOException
IOException
public static Map<String,String> flattenH1Order(Document h1order) throws XPathExpressionException
h1order
- Document to extract MapXPathExpressionException
protected static String getPseudoXpath(Node node)
node
- node to get pseudo-XPathCopyright © 2003-2014 Internet Archive. All Rights Reserved.