summaryrefslogtreecommitdiffstats
path: root/authz-gui/src/main/java/com/att/authz/gui/NamedCode.java
blob: 90e11707a9b1360ac9c1bd25d5173d77c8dffc7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*******************************************************************************
 * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
 *******************************************************************************/
package com.att.authz.gui;

import com.att.xgen.Code;
import com.att.xgen.html.HTMLGen;



public abstract class NamedCode implements Code<HTMLGen> {
	public final boolean no_cache;
	protected String[] idattrs;
	
	/*
	 *  Mark whether this code should not be cached, and any attributes 
	 */
	public NamedCode(final boolean no_cache, String ... idattrs) {
		this.idattrs = idattrs;
		this.no_cache = no_cache;
	}
	
	/**
	 * Return ID and Any Attributes needed to create a "div" section of this code
	 * @return
	 */
	public String[] idattrs() {
		return idattrs;
	}

}