net.ontopia.topicmaps.schema.impl.osl
Class TypeSpecification

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.TypeSpecification
All Implemented Interfaces:
TMObjectMatcherIF

public class TypeSpecification
extends java.lang.Object
implements TMObjectMatcherIF

INTERNAL: Represents the allowed type of a topic map object.


Constructor Summary
TypeSpecification()
          INTERNAL: Creates a new type specification.
 
Method Summary
 boolean equals(TMObjectMatcherIF object)
          INTERNAL: Returns true if this object equals the given parameter.
 TMObjectMatcherIF getClassMatcher()
          INTERNAL: Returns the matcher used to match the allowed type.
 boolean getSubclasses()
          INTERNAL: If true, subclasses of the matched topic are allowed.
 boolean matches(TMObjectIF object)
          INTERNAL: Matches the type of the given object, which must implement the TypedIF interface.
 boolean matchType(TopicIF type)
          INTERNAL: Returns true if the given topic defines an acceptable type.
 void setClassMatcher(TMObjectMatcherIF matcher)
          INTERNAL: Sets the object used to match the type.
 void setSubclasses(boolean subclasses)
          INTERNAL: Controls whether subclasses of the matched topic are accepted.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeSpecification

public TypeSpecification()
INTERNAL: Creates a new type specification.

Method Detail

getClassMatcher

public TMObjectMatcherIF getClassMatcher()
INTERNAL: Returns the matcher used to match the allowed type.


setClassMatcher

public void setClassMatcher(TMObjectMatcherIF matcher)
INTERNAL: Sets the object used to match the type.


getSubclasses

public boolean getSubclasses()
INTERNAL: If true, subclasses of the matched topic are allowed.


setSubclasses

public void setSubclasses(boolean subclasses)
INTERNAL: Controls whether subclasses of the matched topic are accepted.


matchType

public boolean matchType(TopicIF type)
INTERNAL: Returns true if the given topic defines an acceptable type.

Parameters:
type - A candidate acceptable type.

matches

public boolean matches(TMObjectIF object)
INTERNAL: Matches the type of the given object, which must implement the TypedIF interface.

Specified by:
matches in interface TMObjectMatcherIF

equals

public boolean equals(TMObjectMatcherIF object)
Description copied from interface: TMObjectMatcherIF
INTERNAL: Returns true if this object equals the given parameter.

Specified by:
equals in interface TMObjectMatcherIF


Copyright © 2000-2009 Ontopia.