001/** 002 * Copyright 2010-2014 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.common.util.html; 017 018/** 019 * Lightweight pojo for helping generate html. 020 */ 021public class Tag { 022 023 /** 024 * The html tag name. 025 */ 026 private String name; 027 028 /** 029 * The html id. 030 */ 031 private String id; 032 033 /** 034 * The html class. 035 */ 036 private String clazz; 037 038 /** 039 * No args constructor. 040 */ 041 public Tag() { 042 this(null); 043 } 044 045 /** 046 * @param newName 047 * the newName to set 048 */ 049 public Tag(final String newName) { 050 this(newName, null); 051 } 052 053 /** 054 * @param newName 055 * the newName to set 056 * @param newClazz 057 * the newClazz to set 058 */ 059 public Tag(final String newName, final String newClazz) { 060 this(newName, newClazz, null); 061 } 062 063 /** 064 * @param newName 065 * the newName to set 066 * @param newClazz 067 * the newClazz to set 068 * @param newId 069 * the newId to set 070 */ 071 public Tag(final String newName, final String newClazz, final String newId) { 072 super(); 073 this.name = newName; 074 this.id = newId; 075 this.clazz = newClazz; 076 } 077 078 /** 079 * @return the name 080 */ 081 public final String getName() { 082 return name; 083 } 084 085 /** 086 * @param newName 087 * the newName to set 088 */ 089 public final void setName(final String newName) { 090 this.name = newName; 091 } 092 093 /** 094 * @return the id 095 */ 096 public final String getId() { 097 return id; 098 } 099 100 /** 101 * @param newId 102 * the newId to set 103 */ 104 public final void setId(final String newId) { 105 this.id = newId; 106 } 107 108 /** 109 * @return the clazz 110 */ 111 public final String getClazz() { 112 return clazz; 113 } 114 115 /** 116 * @param newClazz 117 * the newClazz to set 118 */ 119 public final void setClazz(final String newClazz) { 120 this.clazz = newClazz; 121 } 122}