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

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
      extended by net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
          extended by net.ontopia.topicmaps.schema.impl.osl.AbstractScopedTypedCardinalityConstraint
              extended by net.ontopia.topicmaps.schema.impl.osl.OccurrenceConstraint
All Implemented Interfaces:
CardinalityConstraintIF, ConstraintIF, ScopedConstraintIF, TypedConstraintIF

public class OccurrenceConstraint
extends AbstractScopedTypedCardinalityConstraint

INTERNAL: Represents a constraint on the occurrences of a class of topics.


Field Summary
protected  int internal
           
protected  TopicConstraintCollection parent
           
static int RESOURCE_EITHER
          INTERNAL: Used to indicate that occurrences can be either internal or external.
static int RESOURCE_EXTERNAL
          INTERNAL: Used to indicate that occurrences can only be external, that is be represented using the URI of the resource.
static int RESOURCE_INTERNAL
          INTERNAL: Used to indicate that occurrences can only be internal, that is be represented using the <resourceData> element in XTM 1.0.
 
Fields inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractScopedTypedCardinalityConstraint
typespec
 
Fields inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
scope
 
Fields inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
maximum, minimum
 
Fields inherited from interface net.ontopia.topicmaps.schema.core.CardinalityConstraintIF
INFINITY
 
Constructor Summary
OccurrenceConstraint(TopicConstraintCollection parent)
          INTERNAL: Creates a new occurrence constraint in the given collection of topic constraints.
 
Method Summary
 int getInternal()
          INTERNAL: Returns a value indicating whether instances of this occurrence type can be internal, external, or both.
 void setInternal(int internal)
          INTERNAL: Used to control whether instances of occurrence type can be internal, external, or both.
 
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractScopedTypedCardinalityConstraint
getTypeSpecification, matches, setTypeSpecification
 
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
getScopeSpecification, setScopeSpecification
 
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
getMaximum, getMinimum, setMaximum, setMinimum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_INTERNAL

public static final int RESOURCE_INTERNAL
INTERNAL: Used to indicate that occurrences can only be internal, that is be represented using the <resourceData> element in XTM 1.0.

See Also:
Constant Field Values

RESOURCE_EXTERNAL

public static final int RESOURCE_EXTERNAL
INTERNAL: Used to indicate that occurrences can only be external, that is be represented using the URI of the resource.

See Also:
Constant Field Values

RESOURCE_EITHER

public static final int RESOURCE_EITHER
INTERNAL: Used to indicate that occurrences can be either internal or external.

See Also:
Constant Field Values

parent

protected TopicConstraintCollection parent

internal

protected int internal
Constructor Detail

OccurrenceConstraint

public OccurrenceConstraint(TopicConstraintCollection parent)
INTERNAL: Creates a new occurrence constraint in the given collection of topic constraints.

Method Detail

setInternal

public void setInternal(int internal)
INTERNAL: Used to control whether instances of occurrence type can be internal, external, or both. The allowed values are those of the RESOURCE_* constants.


getInternal

public int getInternal()
INTERNAL: Returns a value indicating whether instances of this occurrence type can be internal, external, or both. The allowed values are those of the RESOURCE_* constants.



Copyright © 2000-2012 Ontopia.