org.kohsuke.rngom.nc
クラス NameClass

java.lang.Object
  拡張org.kohsuke.rngom.nc.NameClass
すべての実装インタフェース:
ParsedNameClass, java.io.Serializable
直系の既知のサブクラス:
AnyNameExceptNameClass, ChoiceNameClass, NsNameClass, NsNameExceptNameClass, SimpleNameClass

public abstract class NameClass
extends java.lang.Object
implements ParsedNameClass, java.io.Serializable

Name class is a set of QNames.

関連項目:
直列化された形式

フィールドの概要
static NameClass ANY
          Sigleton instance that represents "anyName".
static NameClass NULL
          Sigleton instance that accepts no name.
 
コンストラクタの概要
NameClass()
           
 
メソッドの概要
abstract  void accept(NameClassVisitor visitor)
          Visitor pattern support.
abstract  boolean contains(javax.xml.namespace.QName name)
          Returns true if the given QName is a valid name for this QName.
abstract  int containsSpecificity(javax.xml.namespace.QName name)
           
 boolean hasOverlapWith(NameClass nc2)
          Returns true if the intersection between this name class and the specified name class is non-empty.
abstract  boolean isOpen()
          Returns true if the name class accepts infinite number of QNames.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ANY

public static final NameClass ANY
Sigleton instance that represents "anyName".


NULL

public static final NameClass NULL
Sigleton instance that accepts no name.

コンストラクタの詳細

NameClass

public NameClass()
メソッドの詳細

contains

public abstract boolean contains(javax.xml.namespace.QName name)
Returns true if the given QName is a valid name for this QName.


containsSpecificity

public abstract int containsSpecificity(javax.xml.namespace.QName name)

accept

public abstract void accept(NameClassVisitor visitor)
Visitor pattern support.


isOpen

public abstract boolean isOpen()
Returns true if the name class accepts infinite number of QNames.

Intuitively, this method returns true if the name class is some sort of wildcard.


hasOverlapWith

public final boolean hasOverlapWith(NameClass nc2)
Returns true if the intersection between this name class and the specified name class is non-empty.