You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by si...@apache.org on 2010/12/10 08:31:16 UTC
svn commit: r1044233 - in
/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder:
./ LinkedSAXPipelineBuilder.java LinkedSAXPipelineComponentBuilder.java
LinkedSAXPipelineStarterBuilder.java
Author: simonetripodi
Date: Fri Dec 10 07:31:15 2010
New Revision: 1044233
URL: http://svn.apache.org/viewvc?rev=1044233&view=rev
Log:
first checkin of SAX Pipeline DSL
Added:
cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/
cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java (with props)
cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java (with props)
cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java (with props)
Added: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java?rev=1044233&view=auto
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java (added)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java Fri Dec 10 07:31:15 2010
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.sax.builder;
+
+import org.apache.cocoon.sax.SAXPipelineComponent;
+
+/**
+ *
+ * @version: $Id$
+ */
+public interface LinkedSAXPipelineBuilder<SPC extends SAXPipelineComponent> {
+
+ LinkedSAXPipelineStarterBuilder<SPC> newAsyncCachePipeline();
+
+ LinkedSAXPipelineStarterBuilder<SPC> newCachingPipeline();
+
+ LinkedSAXPipelineStarterBuilder<SPC> newNonCachingPipeline();
+
+}
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineBuilder.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java?rev=1044233&view=auto
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java (added)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java Fri Dec 10 07:31:15 2010
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.sax.builder;
+
+import java.io.File;
+import java.net.URL;
+import java.text.SimpleDateFormat;
+import java.util.Map;
+
+import org.apache.cocoon.pipeline.builder.LinkedPipelineConfigurationBuilder;
+import org.apache.cocoon.sax.SAXPipelineComponent;
+
+/**
+ *
+ *
+ * @version $Id$
+ */
+public interface LinkedSAXPipelineComponentBuilder<SPC extends SAXPipelineComponent> {
+
+ LinkedSAXPipelineComponentBuilder<SPC> addCleaningTransformer();
+
+ LinkedSAXPipelineComponentBuilder<SPC> addIncludeTransformer();
+
+ LinkedSAXPipelineComponentBuilder<SPC> addLogAsXMLTransformer();
+
+ LinkedSAXPipelineComponentBuilder<SPC> addLogAsXMLTransformer(File logFile);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addLogTransformer(File logFile);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addLogTransformer(File logFile, boolean append);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addLogTransformer(File logFile, boolean append, String datePattern);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addLogTransformer(File logFile, boolean append, SimpleDateFormat dateFormat);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addSchemaProcessorTransformer(URL source);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addXIncludeTransformer(URL baseUrl);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addXSLTTransformer(URL source);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addXSLTTransformer(URL source, Map<String, Object> attributes);
+
+ LinkedSAXPipelineComponentBuilder<SPC> addComponent(SPC pipelineComponent);
+
+ LinkedPipelineConfigurationBuilder<SPC> addSerializer();
+
+}
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineComponentBuilder.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java?rev=1044233&view=auto
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java (added)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java Fri Dec 10 07:31:15 2010
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.sax.builder;
+
+import java.io.File;
+import java.io.InputStream;
+import java.net.URL;
+
+import org.apache.cocoon.sax.SAXPipelineComponent;
+import org.apache.cocoon.xml.sax.SAXBuffer;
+import org.w3c.dom.Node;
+
+/**
+ *
+ *
+ * @version $Id$
+ */
+public interface LinkedSAXPipelineStarterBuilder<SPC extends SAXPipelineComponent> {
+
+ LinkedSAXPipelineComponentBuilder<SPC> setByteArrayGenerator(byte[] bytes);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setByteArrayGenerator(byte[] bytes, String encoding);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setFileGenerator(File file);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setInputStreamGenerator(InputStream inputStream);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setNodeGenerator(Node node);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setSAXBufferGenerator(SAXBuffer saxBuffer);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setStringGenerator(String xmlString);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setURLGenerator(URL url);
+
+ LinkedSAXPipelineComponentBuilder<SPC> setStarter(SPC starter);
+
+}
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/builder/LinkedSAXPipelineStarterBuilder.java
------------------------------------------------------------------------------
svn:mime-type = text/plain