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

public Class NamespaceNameClass

extends NameClass
Class Inheritance

NameClass that matchs any names in a particular namespace.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public final String
private static final long
Inherited from com.sun.msv.grammar.NameClass:
ALLLOCALNAME_WILDCARDNAMESPACE_WILDCARDNONE

Constructor Summary

AccessConstructor and Description
public
NamespaceNameClass(String namespaceURI)

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.

accepts a name if its namespace URI matches to the namespaceURI field.
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

namespaceURIback to summary
public final String namespaceURI
serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

NamespaceNameClassback to summary
public NamespaceNameClass(String namespaceURI)

Method Detail

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

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

accepts a name if its namespace URI matches to the namespaceURI field.

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.

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