Package org.zkoss.xml
Class Locators
java.lang.Object
org.zkoss.xml.Locators
Utilities to handle
Locator.- Since:
- 6.0.0
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringFormats the message with the location information.static Stringformat(String message, SourceLocator loc) Formats the message with the location information.static StringFormats the message with the location information.static StringFormats the message with the location information.static LocationtoLocation(SourceLocator loc) Converts an instance ofSourceLocatortoLocation.static LocationtoLocation(Locator loc) static LocationtoLocation(Locator loc)
-
Constructor Details
-
Locators
public Locators()
-
-
Method Details
-
format
Formats the message with the location information.- Parameters:
loc- the location information. Ignored if null.
-
format
Formats the message with the location information.- Parameters:
loc- the location information. Ignored if null.
-
format
Formats the message with the location information.- Parameters:
loc- the location information. Ignored if null.
-
format
Formats the message with the location information.- Parameters:
pubId- the public ID (ignored if null)sysId- the system ID (ignored if null)lineno- the line number (ignored if negative)colno- the line number (ignored if negative)
-
toLocation
-
toLocation
-
toLocation
Converts an instance ofSourceLocatortoLocation. If loc is null, this method returns null.
-