org.nodal.type
Interface RestrictionType.Editor

All Superinterfaces:
Nameable, RestrictionType, Type, TypeFactory
Enclosing interface:
RestrictionType

public static interface RestrictionType.Editor
extends RestrictionType, TypeFactory

An interface to modify instances of RestrictionTypes.


Nested Class Summary
 
Nested classes inherited from class org.nodal.type.RestrictionType
RestrictionType.Editor
 
Method Summary
 boolean addRestriction(java.lang.String name, java.util.Map args)
          Add a Restriction to the set for this RestrictionType.
 void addRestriction(java.lang.String name, java.lang.String[] args)
          Add a Restriction to the set for this RestrictionType.
 boolean removeRestriction(Restriction r)
          Remove a Restriction from the set for this RestrictionType.
 
Methods inherited from interface org.nodal.type.RestrictionType
baseType, edit, restrictionOf, restrictions
 
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
 
Methods inherited from interface org.nodal.type.TypeFactory
createMapType, createRecordType, createRecordType, createRestrictionType, createSequenceType, createUnionType
 

Method Detail

addRestriction

public boolean addRestriction(java.lang.String name,
                              java.util.Map args)
                       throws Restriction.CreationFailure
Add a Restriction to the set for this RestrictionType.

Throws:
Restriction.CreationFailure

removeRestriction

public boolean removeRestriction(Restriction r)
Remove a Restriction from the set for this RestrictionType.


addRestriction

public void addRestriction(java.lang.String name,
                           java.lang.String[] args)
                    throws Restriction.CreationFailure
Add a Restriction to the set for this RestrictionType.

Parameters:
name - the name of the Restrict class
args - a sequence of name-value pairs describing arguments to
Throws:
Restriction.CreationFailure