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

public final Class LocalNameClass

extends NameClass
Class Inheritance
Imports
com.sun.msv.grammar.NameClass, .NameClassVisitor, .SimpleNameClass

a NameClass that accepts any tag name as long as its local part is specified name.
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

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.

checks if this name class accepts given namespace:localName pair.
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

localNameback to summary
public final String localName
serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

LocalNameClassback to summary
public LocalNameClass(String localName)

Method Detail

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

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

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

checks if this name class accepts given namespace:localName pair.

Parameters
namespaceURI: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.

localName:String

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

Returns:boolean

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