001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.log4j.lf5.viewer.categoryexplorer; 018 019/** 020 * CategoryElement represents a single element or part of a Category. 021 * 022 * @author Michael J. Sikorsky 023 * @author Robert Shaw 024 */ 025 026// Contributed by ThoughtWorks Inc. 027 028public class CategoryElement { 029 //-------------------------------------------------------------------------- 030 // Constants: 031 //-------------------------------------------------------------------------- 032 033 //-------------------------------------------------------------------------- 034 // Protected Variables: 035 //-------------------------------------------------------------------------- 036 protected String _categoryTitle; 037 038 //-------------------------------------------------------------------------- 039 // Private Variables: 040 //-------------------------------------------------------------------------- 041 042 //-------------------------------------------------------------------------- 043 // Constructors: 044 //-------------------------------------------------------------------------- 045 046 public CategoryElement() { 047 super(); 048 } 049 050 public CategoryElement(String title) { 051 _categoryTitle = title; 052 } 053 054 //-------------------------------------------------------------------------- 055 // Public Methods: 056 //-------------------------------------------------------------------------- 057 058 public String getTitle() { 059 return (_categoryTitle); 060 } 061 062 public void setTitle(String title) { 063 _categoryTitle = title; 064 } 065 066 //-------------------------------------------------------------------------- 067 // Protected Methods: 068 //-------------------------------------------------------------------------- 069 070 //-------------------------------------------------------------------------- 071 // Private Methods: 072 //-------------------------------------------------------------------------- 073 074 //-------------------------------------------------------------------------- 075 // Nested Top-Level Classes or Interfaces: 076 //-------------------------------------------------------------------------- 077 078} 079 080 081 082 083 084