AT&T 2.0.19 Code drop, stage 4
[aaf/authz.git] / authz-gui / src / main / java / com / att / authz / gui / NamedCode.java
1 /*******************************************************************************
2  * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
3  *******************************************************************************/
4 package com.att.authz.gui;
5
6 import com.att.xgen.Code;
7 import com.att.xgen.html.HTMLGen;
8
9
10
11 public abstract class NamedCode implements Code<HTMLGen> {
12         public final boolean no_cache;
13         protected String[] idattrs;
14         
15         /*
16          *  Mark whether this code should not be cached, and any attributes 
17          */
18         public NamedCode(final boolean no_cache, String ... idattrs) {
19                 this.idattrs = idattrs;
20                 this.no_cache = no_cache;
21         }
22         
23         /**
24          * Return ID and Any Attributes needed to create a "div" section of this code
25          * @return
26          */
27         public String[] idattrs() {
28                 return idattrs;
29         }
30
31 }