001: /*
002: * Created on Feb 24, 2004
003: *
004: * To change the template for this generated file go to
005: * Window>Preferences>Java>Code Generation>Code and Comments
006: */
007: package org.xdev.base.descriptor;
008:
009: /**
010: * @author AYegorov
011: *
012: * To change the template for this generated type comment go to
013: * Window>Preferences>Java>Code Generation>Code and Comments
014: */
015: import org.xdev.base.core.ITypeDescriptor;
016: import org.xdev.base.core.compiler.type.AbstractType;
017: import org.xdev.base.core.compiler.type.PropertyType;
018: import org.xdev.base.core.compiler.type.ElementType;
019: import org.xdev.base.resource.xml.*;
020: import org.xdev.base.xssl.*;
021: import org.xdev.base.xssl.bpm.compare.*;
022: import org.xdev.base.xssl.bpm.condition.*;
023: import org.xdev.base.xssl.bpm.flow.*;
024: import org.xdev.base.xssl.collection.*;
025: import org.xdev.base.xssl.io.*;
026: import org.xdev.base.xssl.util.*;
027: import org.xdev.base.xssl.util.build.AntBuilder;
028: import org.xdev.base.xssl.util.build.AntTask;
029: import org.xdev.base.xssl.manage.*;
030: import org.xdev.base.xssl.text.*;
031: import org.xdev.base.xssl.text.xml.*;
032: import org.xdev.base.xssl.text.jsp.*;
033: import org.xdev.base.xssl.reflection.*;
034:
035: public class CoreTypeDescriptor implements ITypeDescriptor {
036: /**
037: *
038: */
039: public CoreTypeDescriptor() {
040: super ();
041: // XXX Auto-generated constructor stub
042: }
043:
044: /* (non-Javadoc)
045: * @see org.xdev.base.core.ITypeDescriptor#listDescriptions()
046: */
047: public AbstractType[] listDescriptions() throws Exception {
048:
049: return new AbstractType[] {
050: new ElementType(XmlParameterResource.class, "parameter"),
051: new ElementType(XmlPropertyResource.class,
052: "set-property"),
053: new ElementType(SystemProperty.class, "property"),
054: new ElementType(ArrayCollection.class, "list"),
055: new ElementType(CollectionIterator.class, "iterate",
056: new Class[] { SingleChildValidator.class }),
057: new ElementType(CollectionAdder.class, "iterate-add",
058: new Class[] { SingleChildValidator.class }),
059: new ElementType(MapCollection.class, "map"),
060: new ElementType(XGetter.class, "get"),
061: new ElementType(XIterator.class, "flow"),
062: new ElementType(XLogger.class, "log"),
063: new ElementType(XObject.class, "object"),
064: new ElementType(XReference.class, "reference"),
065: new ElementType(XSetter.class, "set"),
066: new ElementType(XText.class, "text"),
067: new ElementType(XCompile.class, "compile"),
068: new ElementType(XUniqueIdentifier.class, "long-guid"),
069: new ElementType(TextAppend.class, "append"),
070: new ElementType(TextContains.class, "is-part-of"),
071: new ElementType(TextContainsIndex.class, "index-of"),
072: new ElementType(TextLength.class, "length"),
073: new ElementType(TextPart.class, "substring"),
074: new ElementType(TextRegEx.class, "regex"),
075: new ElementType(TextReplace.class, "replace"),
076: new ElementType(TextTokens.class, "tokens"),
077: new ElementType(TextTranslate.class, "translate"),
078: new ElementType(TextTrim.class, "trim"),
079: new ElementType(TextInsert.class, "insert"),
080: new ElementType(TextDecode.class, "decode"),
081: new ElementType(TextLower.class, "lower"),
082: new ElementType(TextUpper.class, "upper"),
083: new ElementType(XmlTransform.class, "xtransform"),
084: new ElementType(XmlAppend.class, "xencode"),
085: new ElementType(XmlName.class, "xname"),
086: new ElementType(XmlValue.class, "xvalue"),
087: new ElementType(XmlDocument.class, "xdocument"),
088: new ElementType(XmlDocumentRoot.class, "xroot"),
089: new ElementType(XmlElement.class, "xelement"),
090: new ElementType(XmlSearchElement.class, "xpath"),
091: new ElementType(XmlSearchList.class, "xpath-list"),
092: new ElementType(XmlElementTest.class, "xpath-test"),
093: new ElementType(XmlText.class, "xtext"),
094: new ElementType(XmlJoin.class, "xjoin"),
095: new ElementType(XmlOutput.class, "xoutput"),
096: new ElementType(TransactionCommit.class, "commit"),
097: new ElementType(TransactionDefine.class, "define"),
098: new ElementType(TransactionExecute.class, "execute"),
099: new ElementType(TransactionFinalizer.class, "finalize"),
100: new ElementType(TransactionExecutor.class,
101: "invoke-rule"),
102: new ElementType(TransactionExecutor.class, "xdd"),
103: new ElementType(TransactionManager.class, "manager"),
104: new ElementType(TransactionQueue.class, "queue"),
105: new ElementType(TransactionReturn.class, "return"),
106: new ElementType(TransactionRollback.class, "rollback"),
107: new ElementType(TransactionTrigger.class, "trigger"),
108: new ElementType(TransactionTriggerFlow.class,
109: "trigger-list"),
110: new ElementType(TransactionVariable.class, "variable"),
111: new ElementType(TransactionWriter.class, "writer"),
112: new ElementType(TransactionThreadGroup.class,
113: "thread-group"),
114: new ElementType(FileContent.class, "file"),
115: new ElementType(FileContentReader.class, "file-reader"),
116: new ElementType(FileList.class, "files"),
117: new ElementType(FileTunnel.class, "file-tunnel"),
118: new ElementType(DoWhileFlow.class, "do-while"),
119: new ElementType(ForFlow.class, "for"),
120: new ElementType(Loop.class, "loop"),
121: new ElementType(TryCatchFlow.class, "try"),
122: new ElementType(WhileFlow.class, "while"),
123: new ElementType(Condition.class, "condition"),
124: new ElementType(NotConditionGroup.class, "not"),
125: new ElementType(OrConditionGroup.class, "or"),
126: new ElementType(AndConditionGroup.class, "and"),
127: new ElementType(IsNull.class, "is-null"),
128: new ElementType(EqualsComparison.class, "equals"),
129: new PropertyType(EqualsComparison.class, "compare")
130: .addProperty("is-text", "true"),
131: new ElementType(SwitchComparison.class, "switch"),
132: new ElementType(XShortGuid.class, "guid"),
133: new ElementType(NullValueReplacement.class, "nvl"),
134: new ElementType(CollectionFormatter.class, "format"),
135: new ElementType(JspTags.class, "jsp"),
136: new ElementType(ConsoleInput.class, "console"),
137: new ElementType(CurrentTimeStamp.class, "timestamp"),
138: new ElementType(CurrentDate.class, "date"),
139: new ElementType(DateFormatter.class, "format-date"),
140: new ElementType(ExternalCommand.class, "process"),
141: new ElementType(LocalHostIP.class, "local-ip"),
142: new ElementType(LocalHostName.class, "local-name"),
143: new ElementType(TransactionBreak.class, "break"),
144: new ElementType(TransactionGoto.class, "goto"),
145: new ElementType(NullTest.class, "null-test"),
146: new ElementType(VirtualObject.class, "vobject"),
147: new ElementType(VirtualMethod.class, "vmethod"),
148: new ElementType(VirtualBind.class, "vbin"),
149: new ElementType(TransactionDocument.class, "xdoc"),
150: new ElementType(RuntimeBind.class, "bind"),
151: new ElementType(AntBuilder.class, "ant"),
152: new PropertyType(AntTask.class, "ant-copy")
153: .addProperty("reference-id", "copy"),
154: new PropertyType(VirtualMethod.class, "time-millis")
155: .addProperty("class", "java.lang.System")
156: .addProperty("method", "currentTimeMillis"),
157: new PropertyType(VirtualMethod.class, "reftest")
158: .addProperty("class",
159: "org.xdev.base.xssl.reflection.TestReflection")
160: .addProperty("method", "test"),
161: new PropertyType(VirtualMethod.class, "sysprop")
162: .addProperty("class", "java.lang.System")
163: .addProperty("method", "getProperty")
164: .addProperty("params", "key"),
165: new PropertyType(VirtualMethod.class, "list-add")
166: .addProperty("class", "java.util.ArrayList")
167: .addProperty("method", "add").addProperty(
168: "reference-id", "%{list}"),
169: new PropertyType(VirtualMethod.class, "list-get")
170: .addProperty("class", "java.util.ArrayList")
171: .addProperty("method", "get").addProperty(
172: "reference-id", "%{list}") };
173: }
174: }
|