3853N/A/*
3853N/A * CDDL HEADER START
3853N/A *
3853N/A * The contents of this file are subject to the terms of the
3853N/A * Common Development and Distribution License, Version 1.0 only
3853N/A * (the "License"). You may not use this file except in compliance
3853N/A * with the License.
3853N/A *
6983N/A * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6983N/A * or http://forgerock.org/license/CDDLv1.0.html.
3853N/A * See the License for the specific language governing permissions
3853N/A * and limitations under the License.
3853N/A *
3853N/A * When distributing Covered Code, include this CDDL HEADER in each
6983N/A * file and include the License file at legal-notices/CDDLv1_0.txt.
6983N/A * If applicable, add the following below this CDDL HEADER, with the
6983N/A * fields enclosed by brackets "[]" replaced with your own identifying
6983N/A * information:
3853N/A * Portions Copyright [yyyy] [name of copyright owner]
3853N/A *
3853N/A * CDDL HEADER END
3853N/A *
3853N/A *
5035N/A * Copyright 2008-2010 Sun Microsystems, Inc.
3853N/A */
3853N/A
3853N/Apackage org.opends.guitools.controlpanel.ui.nodes;
3853N/A
3853N/Aimport org.opends.server.api.AttributeSyntax;
3853N/A
3853N/A/**
3853N/A * Class of the nodes that represent an attribute syntax in the 'Manage Schema'
3853N/A * tree.
3853N/A *
3853N/A */
3853N/Apublic class AttributeSyntaxTreeNode extends SchemaElementTreeNode
3853N/A{
3853N/A private static final long serialVersionUID = 2439971368723239776L;
5035N/A private AttributeSyntax<?> syntax;
3853N/A
3853N/A /**
3853N/A * Constructor of the node.
3853N/A * @param name the name of the node.
3853N/A * @param syntax the attribute syntax.
3853N/A */
5035N/A public AttributeSyntaxTreeNode(String name, AttributeSyntax<?> syntax)
3853N/A {
3853N/A super(name, syntax);
3853N/A this.syntax = syntax;
3853N/A }
3853N/A
3853N/A /**
3853N/A * Returns the attribute syntax represented by this node.
3853N/A * @return the attribute syntax represented by this node.
3853N/A */
5035N/A public AttributeSyntax<?> getAttributeSyntax()
3853N/A {
3853N/A return syntax;
3853N/A }
3853N/A}