org.apache.maven.doxia.linkcheck.validation
Class Anchors

java.lang.Object
  extended by org.apache.maven.doxia.linkcheck.validation.Anchors

public class Anchors
extends Object

A helper class to test if some content matches the given HTML anchor


Method Summary
static boolean matchesAnchor(String content, String anchor)
          Returns true if the given anchor can be found in the content markup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matchesAnchor

public static boolean matchesAnchor(String content,
                                    String anchor)
Returns true if the given anchor can be found in the content markup.

Parameters:
content - the content string.
anchor - the anchor to match.
Returns:
true if the given anchor can be found in the content markup.


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.