[AAF-21] Initial code import
[aaf/authz.git] / authz-gui / src / main / java / com / att / authz / gui / NamedCode.java
diff --git a/authz-gui/src/main/java/com/att/authz/gui/NamedCode.java b/authz-gui/src/main/java/com/att/authz/gui/NamedCode.java
new file mode 100644 (file)
index 0000000..90e1170
--- /dev/null
@@ -0,0 +1,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;
+       }
+
+}