1 31 package org.objectweb.proactive.core.component.xml; 32 33 import org.objectweb.proactive.core.xml.handler.UnmarshallerHandler; 34 35 import java.util.Vector ; 36 37 38 41 public class ContainerElementHierarchy { 42 ContainerHandlerMarker fatherHandler; 43 Vector childrenContainerHandlers; 44 45 public ContainerElementHierarchy() { 46 childrenContainerHandlers = new Vector (); 47 } 48 49 public void addFatherHandler(ContainerHandlerMarker fatherHandler) { 50 this.fatherHandler = fatherHandler; 51 } 52 53 public void disableGrandFatherHandler() { 54 if (fatherHandler != null) { 55 if (fatherHandler.getContainerElementHierarchy().getFather() != null) { 56 fatherHandler.getContainerElementHierarchy().getFather() 57 .disable(); 58 } 59 } 60 } 61 62 public void addChildContainerHandler(ContainerHandlerMarker childHandler) { 63 childrenContainerHandlers.add(childHandler); 64 } 65 66 public boolean containsChild(UnmarshallerHandler handler) { 67 return childrenContainerHandlers.contains(handler); 68 } 69 70 public ContainerHandlerMarker getFather() { 71 return fatherHandler; 72 } 73 } 74 | Popular Tags |