1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.filter
.model
;
15 import java
.util
.Arrays
;
16 import java
.util
.List
;
18 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
21 * The Filter tree root node
24 * @author Patrick Tasse
26 public class TmfFilterRootNode
extends TmfFilterTreeNode
{
28 @SuppressWarnings("javadoc")
29 public static final String NODE_NAME
= "ROOT"; //$NON-NLS-1$
31 private static final String
[] VALID_CHILDREN
= {
32 TmfFilterNode
.NODE_NAME
38 public TmfFilterRootNode() {
43 public String
getNodeName() {
48 public boolean matches(ITmfEvent event
) {
49 for (ITmfFilterTreeNode node
: getChildren()) {
50 if (! node
.matches(event
)) {
58 public List
<String
> getValidChildren() {
59 return Arrays
.asList(VALID_CHILDREN
);
This page took 0.034491 seconds and 6 git commands to generate.