notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1227 - trunk/main/metro/builder/src/main/net/dpml/metro/builder
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1227 - trunk/main/metro/builder/src/main/net/dpml/metro/builder
- Date: Sun, 19 Mar 2006 18:53:14 +0100
Author: mcconnell
Date: 2006-03-19 18:53:09 +0100 (Sun, 19 Mar 2006)
New Revision: 1227
Added:
trunk/main/metro/builder/src/main/net/dpml/metro/builder/DefaultType.java
Modified:
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentBuilder.java
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentStrategyBuilder.java
Log:
move DefaultType from net.dpml.lang to net.dpml.metro.builder
Modified:
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentBuilder.java
===================================================================
---
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentBuilder.java
2006-03-19 17:37:31 UTC (rev 1226)
+++
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentBuilder.java
2006-03-19 17:53:09 UTC (rev 1227)
@@ -21,8 +21,9 @@
import java.io.IOException;
import java.net.URI;
-import net.dpml.part.DOM3DocumentBuilder;
+import net.dpml.lang.Value;
import net.dpml.lang.BuilderException;
+
import net.dpml.component.ActivationPolicy;
import net.dpml.metro.data.ContextDirective;
@@ -36,8 +37,9 @@
import net.dpml.metro.info.PartReference;
import net.dpml.metro.info.Priority;
+import net.dpml.part.DOM3DocumentBuilder;
+
import net.dpml.transit.util.ElementHelper;
-import net.dpml.lang.Value;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified:
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentStrategyBuilder.java
===================================================================
---
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentStrategyBuilder.java
2006-03-19 17:37:31 UTC (rev 1226)
+++
trunk/main/metro/builder/src/main/net/dpml/metro/builder/ComponentStrategyBuilder.java
2006-03-19 17:53:09 UTC (rev 1227)
@@ -33,7 +33,6 @@
import net.dpml.lang.Builder;
import net.dpml.lang.BuilderException;
import net.dpml.library.Type;
-import net.dpml.lang.DefaultType;
import org.w3c.dom.Element;
import org.w3c.dom.TypeInfo;
Added:
trunk/main/metro/builder/src/main/net/dpml/metro/builder/DefaultType.java
===================================================================
--- trunk/main/metro/builder/src/main/net/dpml/metro/builder/DefaultType.java
2006-03-19 17:37:31 UTC (rev 1226)
+++ trunk/main/metro/builder/src/main/net/dpml/metro/builder/DefaultType.java
2006-03-19 17:53:09 UTC (rev 1227)
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2006 Stephen J. McConnell.
+ *
+ * Licensed 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 net.dpml.metro.builder;
+
+import net.dpml.library.Type;
+
+/**
+ * Generic implementation of a type.
+ *
+ * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a>
+ * @version @PROJECT-VERSION@
+ */
+public class DefaultType implements Type
+{
+ private final String m_type;
+ private final boolean m_alias;
+ private final Object m_data;
+
+ /**
+ * Creation of a new generic type production handler.
+ * @param type the type id
+ * @param alias the alias flag
+ * @param data associated type datastructure
+ */
+ public DefaultType( String type, boolean alias, Object data )
+ {
+ m_type = type;
+ m_alias = alias;
+ m_data = data;
+ }
+
+ /**
+ * Return the type production id.
+ * @return the type id
+ */
+ public String getID()
+ {
+ return m_type;
+ }
+
+ /**
+ * Return the type production alias flag value.
+ * @return the alias flag
+ */
+ public boolean getAlias()
+ {
+ return m_alias;
+ }
+
+ /**
+ * Return the type production datatype.
+ * @return the datatytpe
+ */
+ public Object getData()
+ {
+ return m_data;
+ }
+}
- r1227 - trunk/main/metro/builder/src/main/net/dpml/metro/builder, mcconnell at BerliOS, 03/19/2006
Archive powered by MHonArc 2.6.24.