public void parent ( String name , String parentName ) { ElementType child = getElementType ( name ) ; ElementType parent = getElementType ( parentName ) ; if ( child == null ) { throw new Error ( "No child " + name + " for parent " + parentName ) ; } if ( parent == null ) { throw new Error ( "No parent " + parentName + " for child " + name ) ; } child . setParent ( parent ) ; }
Specify natural parent of an element in this schema .