/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.flex.compiler.internal.fxg.dom.richtext; import static org.apache.flex.compiler.fxg.FXGConstants.FXG_TAB_ELEMENT; import java.util.Collection; import org.apache.flex.compiler.fxg.dom.IFXGNode; import org.apache.flex.compiler.problems.ICompilerProblem; /** * Represents a <br /> child tag of FXG <RichText> content. A * <br /> tag starts a new tab in text content. * <p> * This is an empty tag - text content or child tags are not expected. */ public class TabNode extends AbstractRichTextLeafNode { //-------------------------------------------------------------------------- // // IFXGNode Implementation // //-------------------------------------------------------------------------- /** * @return The unqualified name of a tab node, without tag markup. */ @Override public String getNodeName() { return FXG_TAB_ELEMENT; } /** * Tab node doesn't allow any children. Throws an exception when adding an * FXG child node to this Tab node. * * @param child - a child FXG node to be added to this node. * @param problems problem collection used to collect problems occurred within this method */ @Override public void addChild(IFXGNode child, Collection<ICompilerProblem> problems) { super.addChild(child, problems); } }