[jboss-cvs] JBossAS SVN: r83970 - in projects/metadata/trunk/src/main/java/org/jboss/metadata: web/spec and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Feb 6 11:53:57 EST 2009


Author: remy.maucherat at jboss.com
Date: 2009-02-06 11:53:57 -0500 (Fri, 06 Feb 2009)
New Revision: 83970

Added:
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/AttributeMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/BodyContentType.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredMethodMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredValueMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FunctionMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagFileMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TldMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ValidatorMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableScopeType.java
Modified:
   projects/metadata/trunk/src/main/java/org/jboss/metadata/javaee/spec/JavaEEMetaDataConstants.java
Log:
- Add early .tld metadata.
- There are many incompatible changes between versions, so will need a second pass.

Modified: projects/metadata/trunk/src/main/java/org/jboss/metadata/javaee/spec/JavaEEMetaDataConstants.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/javaee/spec/JavaEEMetaDataConstants.java	2009-02-06 16:45:40 UTC (rev 83969)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/javaee/spec/JavaEEMetaDataConstants.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -40,6 +40,7 @@
    String J2EE_13_CLIENT = "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN";
    String J2EE_13_EJB = "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN";
    String J2EE_13_WEB = "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN";
+   String J2EE_13_TLD = "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN";
 
    /** The jboss javaee namespaces */
    String JBOSS_NS = "http://www.jboss.com/xml/ns/javaee";

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/AttributeMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/AttributeMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/AttributeMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,112 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup;
+
+/**
+ * taglib/tag-file metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 75201 $
+ */
+public class AttributeMetaData extends NamedMetaDataWithDescriptionGroup
+{
+   private static final long serialVersionUID = 1;
+   
+   private boolean required = false;
+   private boolean rtexprvalue = false;
+   private String type;
+   private boolean fragment = false;
+   private DeferredValueMetaData deferredValue; 
+   private DeferredMethodMetaData deferredMethod;
+
+   public String getType()
+   {
+      return type;
+   }
+   public void setType(String type)
+   {
+      this.type = type;
+   }
+
+   public boolean getRequired()
+   {
+      return required;
+   }
+   public void setRequired(boolean required)
+   {
+      this.required = required;
+   }
+
+   public boolean getRtexprvalue()
+   {
+      return rtexprvalue;
+   }
+   public void setRtexprvalue(boolean rtexprvalue)
+   {
+      this.rtexprvalue = rtexprvalue;
+   }
+
+   public boolean getFragment()
+   {
+      return fragment;
+   }
+   public void setFragment(boolean fragment)
+   {
+      this.fragment = fragment;
+   }
+
+   public DeferredValueMetaData getDeferredValue()
+   {
+      return deferredValue;
+   }
+   public void setDeferredValue(DeferredValueMetaData deferredValue)
+   {
+      this.deferredValue = deferredValue;
+   }
+
+   public DeferredMethodMetaData getDeferredMethod()
+   {
+      return deferredMethod;
+   }
+   public void setDeferredMethod(DeferredMethodMetaData deferredMethod)
+   {
+      this.deferredMethod = deferredMethod;
+   }
+
+   public String toString()
+   {
+      StringBuilder tmp = new StringBuilder("AttributeMetaData(id=");
+      tmp.append(getId());
+      tmp.append(",required=");
+      tmp.append(required);
+      tmp.append(",rtexprvalue=");
+      tmp.append(rtexprvalue);
+      tmp.append(",fragment=");
+      tmp.append(fragment);
+      tmp.append(",type=");
+      tmp.append(type);
+      tmp.append(')');
+      return tmp.toString();
+   }
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/BodyContentType.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/BodyContentType.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/BodyContentType.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * tag body content type
+ * @author Remy Maucherat
+ * @version $Revision: 65928 $
+ */
+ at XmlType(name="body-contentType")
+ at XmlEnum(String.class)
+public enum BodyContentType
+{
+    tagdependent, JSP, empty, scriptless
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredMethodMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredMethodMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredMethodMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * The tag/attribute/deferred-value metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 81768 $
+ */
+public class DeferredMethodMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+
+   private String type;
+   
+   public String getType()
+   {
+      return type;
+   }
+   public void setType(String type)
+   {
+      this.type = type;
+   }
+
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredValueMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredValueMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DeferredValueMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * The tag/attribute/deferred-method metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 81768 $
+ */
+public class DeferredValueMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+
+   private String methodSignature;
+   
+   public String getMethodSignature()
+   {
+      return methodSignature;
+   }
+   public void setMethodSignature(String methodSignature)
+   {
+      this.methodSignature = methodSignature;
+   }
+
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FunctionMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FunctionMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FunctionMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup;
+
+/**
+ * taglib/tag-file metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 75201 $
+ */
+public class FunctionMetaData extends NamedMetaDataWithDescriptionGroup
+{
+   private static final long serialVersionUID = 1;
+   
+   private String functionClass;
+   private String functionSignature;
+
+   public String getFunctionClass()
+   {
+      return functionClass;
+   }
+   public void setFunctionClass(String functionClass)
+   {
+      this.functionClass = functionClass;
+   }
+
+   public String getFunctionSignature()
+   {
+      return functionSignature;
+   }
+   public void setFunctionSignature(String functionSignature)
+   {
+      this.functionSignature = functionSignature;
+   }
+
+   public String toString()
+   {
+      StringBuilder tmp = new StringBuilder("FunctionMetaData(id=");
+      tmp.append(getId());
+      tmp.append(",functionClass=");
+      tmp.append(functionClass);
+      tmp.append(",functionSignature=");
+      tmp.append(functionSignature);
+      tmp.append(')');
+      return tmp.toString();
+   }
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagFileMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagFileMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagFileMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup;
+
+/**
+ * taglib/tag-file metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 75201 $
+ */
+public class TagFileMetaData extends NamedMetaDataWithDescriptionGroup
+{
+   private static final long serialVersionUID = 1;
+   
+   private String path;
+
+   public String getPath()
+   {
+      return path;
+   }
+   public void setPath(String path)
+   {
+      this.path = path;
+   }
+
+   public String toString()
+   {
+      StringBuilder tmp = new StringBuilder("TagFileMetaData(id=");
+      tmp.append(getId());
+      tmp.append(",path=");
+      tmp.append(path);
+      tmp.append(')');
+      return tmp.toString();
+   }
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TagMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,118 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup;
+
+/**
+ * taglib/tag metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 75201 $
+ */
+public class TagMetaData extends NamedMetaDataWithDescriptionGroup
+{
+   private static final long serialVersionUID = 1;
+   
+   private String tagClass;
+   private String teiClass;
+   private BodyContentType bodyContent;
+   private List<VariableMetaData> variables;
+   private List<AttributeMetaData> attributes;
+   private boolean dynamicAttributes = false;
+
+   public String getTagClass()
+   {
+      return tagClass;
+   }
+   public void setTagClass(String tagClass)
+   {
+      this.tagClass = tagClass;
+   }
+
+   public String getTeiClass()
+   {
+      return teiClass;
+   }
+   public void setTeiClass(String teiClass)
+   {
+      this.teiClass = teiClass;
+   }
+
+   public BodyContentType getBodyContent()
+   {
+      return bodyContent;
+   }
+   public void setBodyContent(BodyContentType bodyContent)
+   {
+      this.bodyContent = bodyContent;
+   }
+
+   public boolean getDynamicAttributes()
+   {
+      return dynamicAttributes;
+   }
+   public void setDynamicAttributes(boolean dynamicAttributes)
+   {
+      this.dynamicAttributes = dynamicAttributes;
+   }
+
+   public List<VariableMetaData> getVariables()
+   {
+      return variables;
+   }
+   @XmlElement(name="variable")
+   public void setVariables(List<VariableMetaData> variables)
+   {
+      this.variables = variables;
+   }
+
+   public List<AttributeMetaData> getAttributes()
+   {
+      return attributes;
+   }
+   @XmlElement(name="attribute")
+   public void setAttributes(List<AttributeMetaData> attributes)
+   {
+      this.attributes = attributes;
+   }
+
+   public String toString()
+   {
+      StringBuilder tmp = new StringBuilder("ServletMetaData(id=");
+      tmp.append(getId());
+      tmp.append(",tagClass=");
+      tmp.append(tagClass);
+      tmp.append(",teiClass=");
+      tmp.append(teiClass);
+      tmp.append(",dynamicAttributes=");
+      tmp.append(dynamicAttributes);
+      tmp.append(",bodyContent=");
+      tmp.append(bodyContent);
+      tmp.append(')');
+      return tmp.toString();
+   }
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TldMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TldMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TldMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,190 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlTransient;
+
+import org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup;
+
+/**
+ * The taglib spec metadata
+ * Locations that must be scanned for .tld files are:
+ * - All paths in a WAR under WEB-INF, except WEB-INF/lib and WEB-INF/classes
+ * - All paths under META-INF in JARs
+ * @author Remy Maucherat
+ * @version $Revision: 70996 $
+ */
+public class TldMetaData extends NamedMetaDataWithDescriptionGroup
+{
+   private static final long serialVersionUID = 1;
+
+   // FIXME: Should separate things over the various versions like is done for web.xml
+   // FIXME: Won't support .tld 1.1 DTD
+   private String dtdPublicId;
+   private String dtdSystemId;
+   private String version;
+   private String tlibVersion;
+   private String jspVersion;
+   private ValidatorMetaData validator;
+   private List<ListenerMetaData> listeners;
+   private List<TagMetaData> tags;
+   private List<TagFileMetaData> tagFiles;
+   private List<FunctionMetaData> functions;
+
+   /**
+    * Callback for the DTD information
+    * @param root
+    * @param publicId
+    * @param systemId
+    */
+   @XmlTransient
+   public void setDTD(String root, String publicId, String systemId)
+   {
+      this.dtdPublicId = publicId;
+      this.dtdSystemId = systemId;
+   }
+   /**
+    * Get the DTD public id if one was seen
+    * @return the value of the web.xml dtd public id
+    */
+   @XmlTransient
+   public String getDtdPublicId()
+   {
+      return dtdPublicId;
+   }
+   /**
+    * Get the DTD system id if one was seen
+    * @return the value of the web.xml dtd system id
+    */
+   @XmlTransient
+   public String getDtdSystemId()
+   {
+      return dtdSystemId;
+   }
+
+   public String getVersion()
+   {
+      return version;
+   }
+   @XmlAttribute
+   public void setVersion(String version)
+   {
+      this.version = version;
+   }
+
+   @XmlTransient
+   public boolean is12()
+   {
+      return dtdPublicId != null && dtdPublicId.equals("-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN");
+   }
+   @XmlTransient
+   public boolean is20()
+   {
+      return version != null && version.equals("2.0");
+   }
+   @XmlTransient
+   public boolean is21()
+   {
+      return version != null && version.equals("2.1");
+   }
+
+   public String getUri()
+   {
+      return getName();
+   }
+   public void setUri(String uri)
+   {
+      super.setName(uri);
+   }
+
+   public String getTlibVersion()
+   {
+      return tlibVersion;
+   }
+   public void setTlibVersion(String tlibVersion)
+   {
+      this.tlibVersion = tlibVersion;
+   }
+
+   public String getJspVersion()
+   {
+      return jspVersion;
+   }
+   public void setJspVersion(String jspVersion)
+   {
+      this.jspVersion = jspVersion;
+   }
+
+   public ValidatorMetaData getValidator()
+   {
+      return validator;
+   }
+   public void setJspVersion(ValidatorMetaData validator)
+   {
+      this.validator = validator;
+   }
+
+   public List<TagMetaData> getTags()
+   {
+      return tags;
+   }
+   @XmlElement(name="tag")
+   public void setTags(List<TagMetaData> tags)
+   {
+      this.tags = tags;
+   }
+
+   public List<TagFileMetaData> getTagFiles()
+   {
+      return tagFiles;
+   }
+   @XmlElement(name="tag-file")
+   public void setTagFiles(List<TagFileMetaData> tagFiles)
+   {
+      this.tagFiles = tagFiles;
+   }
+
+   public List<FunctionMetaData> getFunctions()
+   {
+      return functions;
+   }
+   @XmlElement(name="function")
+   public void setFunctions(List<FunctionMetaData> functions)
+   {
+      this.functions = functions;
+   }
+
+   public List<ListenerMetaData> getListeners()
+   {
+      return listeners;
+   }
+   @XmlElement(name="listener")
+   public void setListeners(List<ListenerMetaData> listeners)
+   {
+      this.listeners = listeners;
+   }
+
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ValidatorMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ValidatorMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ValidatorMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.spec.ParamValueMetaData;
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * The tag/validator metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 81768 $
+ */
+public class ValidatorMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+
+   private String validatorClass;
+   private List<ParamValueMetaData> initParams;
+   
+   public String getValidatorClass()
+   {
+      return validatorClass;
+   }
+   public void setValidatorClass(String validatorClass)
+   {
+      this.validatorClass = validatorClass;
+   }
+
+   public List<ParamValueMetaData> getInitParams()
+   {
+      return initParams;
+   }
+   @XmlElement(name="init-param")
+   public void setInitParams(List<ParamValueMetaData> initParams)
+   {
+      this.initParams = initParams;
+   }
+
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableMetaData.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * The tag/variable metadata
+ * 
+ * @author Remy Maucherat
+ * @version $Revision: 81768 $
+ */
+public class VariableMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+
+   private String nameGiven;
+   private String nameFromAttribute;
+   private String variableClass;
+   private boolean declare = true;
+   private VariableScopeType scope = VariableScopeType.NESTED;
+   
+   public String getNameGiven()
+   {
+      return nameGiven;
+   }
+   public void setNameGiven(String nameGiven)
+   {
+      this.nameGiven = nameGiven;
+   }
+
+   public String getNameFromAttribute()
+   {
+      return nameFromAttribute;
+   }
+   public void setNameFromAttribute(String nameFromAttribute)
+   {
+      this.nameFromAttribute = nameFromAttribute;
+   }
+
+   public String getVariableClass()
+   {
+      return variableClass;
+   }
+   public void setVariableClass(String variableClass)
+   {
+      this.variableClass = variableClass;
+   }
+
+   public boolean getDeclare()
+   {
+      return declare;
+   }
+   public void setDeclare(boolean declare)
+   {
+      this.declare = declare;
+   }
+
+   public VariableScopeType getScope()
+   {
+      return scope;
+   }
+   public void setScope(VariableScopeType scope)
+   {
+      this.scope = scope;
+   }
+
+}

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableScopeType.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableScopeType.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/VariableScopeType.java	2009-02-06 16:53:57 UTC (rev 83970)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * tag/variable scope type
+ * @author Remy Maucherat
+ * @version $Revision: 65928 $
+ */
+ at XmlType(name="variable-scopeType")
+ at XmlEnum(String.class)
+public enum VariableScopeType
+{
+    NESTED, AT_BEGIN, AT_END
+}




More information about the jboss-cvs-commits mailing list