Top Description Fields Constructors Methods
com.sun.msv.grammar

public final Class AnyNameClass

extends NameClass
Class Inheritance

a NameClass that matches any name.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private static final long
public static final NameClass
theInstance

Singleton instance.

Inherited from com.sun.msv.grammar.NameClass:
ALLLOCALNAME_WILDCARDNAMESPACE_WILDCARDNONE

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public boolean
accepts(String
namespace URI to be tested. If this value equals to NAMESPACE_WILDCARD, implementation must assume that valid namespace is specified. this twist will be used for error diagnosis.
namespaceURI
,
String
local part to be tested. As with namespaceURI, LOCALNAME_WILDCARD will acts as a wild card.
localName
)

Implements abstract com.sun.msv.grammar.NameClass.accepts.

AnyNameClass accpets any name, as its name suggests.
private Object
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public Object
visit(NameClassVisitor visitor)

Implements abstract com.sun.msv.grammar.NameClass.visit.

visitor pattern support
Inherited from com.sun.msv.grammar.NameClass:
acceptsincludesintersectionisEqualToisNullsimplifyunion

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.grammar.NameClass.serialVersionUID.

theInstanceback to summary
public static final NameClass theInstance

Deprecated

Use NameClass#ALL instead.

Singleton instance.

Constructor Detail

AnyNameClassback to summary
protected AnyNameClass()

Method Detail

acceptsback to summary
public boolean accepts(String namespaceURI, String localName)

Implements abstract com.sun.msv.grammar.NameClass.accepts.

AnyNameClass accpets any name, as its name suggests.

Parameters
namespaceURI:String

Doc from com.sun.msv.grammar.NameClass.accepts.

namespace URI to be tested. If this value equals to NAMESPACE_WILDCARD, implementation must assume that valid namespace is specified. this twist will be used for error diagnosis.

localName:String

Doc from com.sun.msv.grammar.NameClass.accepts.

local part to be tested. As with namespaceURI, LOCALNAME_WILDCARD will acts as a wild card.

Returns:boolean

Doc from com.sun.msv.grammar.NameClass.accepts.

true if the pair is accepted, false otherwise.

readResolveback to summary
private Object readResolve()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

visitback to summary
public Object visit(NameClassVisitor visitor)

Implements abstract com.sun.msv.grammar.NameClass.visit.

Doc from com.sun.msv.grammar.NameClass.visit.

visitor pattern support