super(element);
NodeList allChildren = this.getTimeChildren(); ArrayList<Node> nodes = new ArrayList<Node>(); for (int i = 0; i < allChildren.getLength(); i++) { instant -= ((ElementTime) allChildren.item(i)).getDur(); if (instant < 0) { nodes.add(allChildren.item(i)); return new NodeListImpl(nodes); } } return new NodeListImpl(nodes);
float dur = super.getDur(); if (dur == 0) { NodeList children = getTimeChildren(); for (int i = 0; i < children.getLength(); ++i) { ElementTime child = (ElementTime) children.item(i); if (child.getDur() < 0) { // Return "indefinite" since containing a child whose duration is indefinite. return -1.0F; } dur += child.getDur(); } } return dur;