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

public final Class NotNameClass

extends NameClass
Class Inheritance

NameClass that acts a not operator. Actually, A NotNameClass can be represented by using a DifferenceNameClass and AnyNameClass.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public final NameClass
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.

accepts a name if it is not accepted by the child name class.
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

childback to summary
public final NameClass child
serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

NotNameClassback to summary
public NotNameClass(NameClass child)

Method Detail

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

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

accepts a name if it is not accepted by the child name class.

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