com.bbn.swede.editor.rules
Class XMLNameDetector

java.lang.Object
  extended bycom.bbn.swede.editor.rules.XMLNameDetector

class XMLNameDetector
extends Object

A word detector for finding XML names. For purposes of this rule, an XML name must meet the following requirements:

  1. Begins with a letter or '_'
  2. Contains at most one ':'
  3. Remaining characters are letters, '_', '-', or '.'

Author:
jlerner

Constructor Summary
(package private) XMLNameDetector()
           
 
Method Summary
 boolean isWordPart(char c)
           
 boolean isWordStart(char c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNameDetector

XMLNameDetector()
Method Detail

isWordStart

public boolean isWordStart(char c)

isWordPart

public boolean isWordPart(char c)


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.