Java Code Examples for com.helger.commons.string.StringHelper#getConcatenatedOnDemand()

The following examples show how to use com.helger.commons.string.StringHelper#getConcatenatedOnDemand() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleLocation.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Nullable
public static SimpleLocation create (@Nullable final Locator aLocator)
{
  if (aLocator == null)
    return null;

  return new SimpleLocation (StringHelper.getConcatenatedOnDemand (aLocator.getPublicId (),
                                                                   "/",
                                                                   aLocator.getSystemId ()),
                             aLocator.getLineNumber (),
                             aLocator.getColumnNumber ());
}
 
Example 2
Source File: SimpleLocation.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Nullable
public static SimpleLocation create (@Nullable final SourceLocator aLocator)
{
  if (aLocator == null)
    return null;

  return new SimpleLocation (StringHelper.getConcatenatedOnDemand (aLocator.getPublicId (),
                                                                   "/",
                                                                   aLocator.getSystemId ()),
                             aLocator.getLineNumber (),
                             aLocator.getColumnNumber ());
}
 
Example 3
Source File: SimpleLocation.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Nullable
public static SimpleLocation create (@Nullable final SAXParseException aLocator)
{
  if (aLocator == null)
    return null;

  return new SimpleLocation (StringHelper.getConcatenatedOnDemand (aLocator.getPublicId (),
                                                                   "/",
                                                                   aLocator.getSystemId ()),
                             aLocator.getLineNumber (),
                             aLocator.getColumnNumber ());
}
 
Example 4
Source File: SimpleLocation.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Nullable
public static SimpleLocation create (@Nullable final Location aLocator)
{
  if (aLocator == null)
    return null;

  return new SimpleLocation (StringHelper.getConcatenatedOnDemand (aLocator.getPublicId (),
                                                                   "/",
                                                                   aLocator.getSystemId ()),
                             aLocator.getLineNumber (),
                             aLocator.getColumnNumber ());
}