Skip to content

Commit

Permalink
Formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Nov 17, 2022
1 parent 9c98adc commit 49baa19
Showing 1 changed file with 34 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public static Object evalXPath (@Nullable final XPathVariableResolver aVariableR
@Nonnull final Document aDoc,
@Nonnull final QName aReturnType)
{
return evalXPath (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext), sXPath, aDoc, aReturnType);
return evalXPath (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext),
sXPath,
aDoc,
aReturnType);
}

@Nullable
Expand Down Expand Up @@ -94,7 +97,9 @@ public static Double evalXPathToNumber (@Nullable final XPathVariableResolver aV
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
return evalXPathToNumber (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext), sXPath, aDoc);
return evalXPathToNumber (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext),
sXPath,
aDoc);
}

@Nullable
Expand All @@ -104,7 +109,9 @@ public static Double evalXPathToNumber (@Nonnull final String sXPath, @Nonnull f
}

@Nullable
public static Double evalXPathToNumber (@Nonnull final XPath aXPath, @Nonnull final String sXPath, @Nonnull final Document aDoc)
public static Double evalXPathToNumber (@Nonnull final XPath aXPath,
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
final Object aResult = evalXPath (aXPath, sXPath, aDoc, XPathConstants.NUMBER);
return (Double) aResult;
Expand All @@ -117,7 +124,9 @@ public static String evalXPathToString (@Nullable final XPathVariableResolver aV
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
return evalXPathToString (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext), sXPath, aDoc);
return evalXPathToString (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext),
sXPath,
aDoc);
}

@Nullable
Expand All @@ -127,7 +136,9 @@ public static String evalXPathToString (@Nonnull final String sXPath, @Nonnull f
}

@Nullable
public static String evalXPathToString (@Nonnull final XPath aXPath, @Nonnull final String sXPath, @Nonnull final Document aDoc)
public static String evalXPathToString (@Nonnull final XPath aXPath,
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
final Object aResult = evalXPath (aXPath, sXPath, aDoc, XPathConstants.STRING);
return (String) aResult;
Expand All @@ -140,7 +151,9 @@ public static Boolean evalXPathToBoolean (@Nullable final XPathVariableResolver
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
return evalXPathToBoolean (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext), sXPath, aDoc);
return evalXPathToBoolean (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext),
sXPath,
aDoc);
}

@Nullable
Expand All @@ -150,7 +163,9 @@ public static Boolean evalXPathToBoolean (@Nonnull final String sXPath, @Nonnull
}

@Nullable
public static Boolean evalXPathToBoolean (@Nonnull final XPath aXPath, @Nonnull final String sXPath, @Nonnull final Document aDoc)
public static Boolean evalXPathToBoolean (@Nonnull final XPath aXPath,
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
final Object aResult = evalXPath (aXPath, sXPath, aDoc, XPathConstants.BOOLEAN);
return (Boolean) aResult;
Expand All @@ -163,7 +178,9 @@ public static NodeList evalXPathToNodeList (@Nullable final XPathVariableResolve
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
return evalXPathToNodeList (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext), sXPath, aDoc);
return evalXPathToNodeList (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext),
sXPath,
aDoc);
}

@Nullable
Expand All @@ -173,7 +190,9 @@ public static NodeList evalXPathToNodeList (@Nonnull final String sXPath, @Nonnu
}

@Nullable
public static NodeList evalXPathToNodeList (@Nonnull final XPath aXPath, @Nonnull final String sXPath, @Nonnull final Document aDoc)
public static NodeList evalXPathToNodeList (@Nonnull final XPath aXPath,
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
final Object aResult = evalXPath (aXPath, sXPath, aDoc, XPathConstants.NODESET);
return (NodeList) aResult;
Expand All @@ -186,7 +205,9 @@ public static Node evalXPathToNode (@Nullable final XPathVariableResolver aVaria
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
return evalXPathToNode (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext), sXPath, aDoc);
return evalXPathToNode (XPathHelper.createNewXPath (aVariableResolver, aFunctionResolver, aNamespaceContext),
sXPath,
aDoc);
}

@Nullable
Expand All @@ -196,7 +217,9 @@ public static Node evalXPathToNode (@Nonnull final String sXPath, @Nonnull final
}

@Nullable
public static Node evalXPathToNode (@Nonnull final XPath aXPath, @Nonnull final String sXPath, @Nonnull final Document aDoc)
public static Node evalXPathToNode (@Nonnull final XPath aXPath,
@Nonnull final String sXPath,
@Nonnull final Document aDoc)
{
final Object aResult = evalXPath (aXPath, sXPath, aDoc, XPathConstants.NODE);
return (Node) aResult;
Expand Down

0 comments on commit 49baa19

Please sign in to comment.