org.nodal.type
Interface UnionType.Editor

All Superinterfaces:
Nameable, NodeType, NodeType.Editor, Type, TypeFactory, UnionType
Enclosing interface:
UnionType

public static interface UnionType.Editor
extends UnionType, NodeType.Editor

The interface for modifying a UnionType.


Nested Class Summary
 
Nested classes inherited from class org.nodal.type.UnionType
UnionType.Editor
 
Method Summary
 NodeType addType(NodeType key)
          Add a Type to the set of allowed Types in the associated UnionType.
 NodeType removeType(NodeType key)
          Remove a Type from the set of allowed Types in the associated UnionType.
 
Methods inherited from interface org.nodal.type.UnionType
types
 
Methods inherited from interface org.nodal.type.NodeType
asMapType, asRecordType, asSequenceType, edit, propertyType, valueType
 
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

addType

public NodeType addType(NodeType key)
Add a Type to the set of allowed Types in the associated UnionType.


removeType

public NodeType removeType(NodeType key)
Remove a Type from the set of allowed Types in the associated UnionType.