net.ontopia.topicmaps.schema.impl.osl
Class OccurrenceConstraint
java.lang.Object
net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
net.ontopia.topicmaps.schema.impl.osl.AbstractScopedTypedCardinalityConstraint
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
OccurrenceConstraint
public OccurrenceConstraint(TopicConstraintCollection parent)
- INTERNAL: Creates a new occurrence constraint in the given
collection of topic constraints.
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.