org.nodal.type
Interface RestrictionType

All Superinterfaces:
Nameable, Type
All Known Subinterfaces:
RestrictionType.Editor

public interface RestrictionType
extends Type

A Type defined by restricting the valid data set of an existing Type.

A RestrictionType is constructed by applying a set of Restriction operations to an existing Type.

Author:
Lee Iverson

Nested Class Summary
static interface RestrictionType.Editor
          An interface to modify instances of RestrictionTypes.
 
Method Summary
 Type baseType()
          The ultimate non-RestrictionType Type that this is a restriction of.
 RestrictionType.Editor edit()
          Return an Editor for this RestrictionType.
 Type restrictionOf()
          The Type that this is a restriction of.
 java.util.Enumeration restrictions()
          The set of Restriction operators that constitute the data set constraints of this RestrictionType with respect to the Type that is being restricted.
 
Methods inherited from interface org.nodal.type.Type
accepts, accepts, accepts, accepts, accepts, accepts, accepts, accepts, accepts, acceptsNode, acceptsString, acceptsType, from, from, from, from, from, from, from, from, from, fromNode, fromString, isNodeType, type
 
Methods inherited from interface org.nodal.util.Nameable
name, setName
 

Method Detail

restrictionOf

public Type restrictionOf()
The Type that this is a restriction of.


baseType

public Type baseType()
The ultimate non-RestrictionType Type that this is a restriction of.


restrictions

public java.util.Enumeration restrictions()
The set of Restriction operators that constitute the data set constraints of this RestrictionType with respect to the Type that is being restricted.


edit

public RestrictionType.Editor edit()
Return an Editor for this RestrictionType.