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.
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.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 |
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 classargs
- a sequence of name-value pairs describing arguments to
- Throws:
Restriction.CreationFailure