Examples of alias()


Examples of com.thoughtworks.xstream.XStream.alias()

      metaData.setDirectAccess(directAccess);
      metaData.setDescription(description);
      metaData.setCacheable(cacheable);
      metaData.setCategory(category);
      XStream xstream = new XStream(new DomDriver());
      xstream.alias(TMLMetadataInfo.XSTREAM_ALIAS, TMLMetadataInfo.class);
      Writer writer = null;
      try {
        if (!_metadataFolder.exists()) {
          _metadataFolder.create(true, true, new NullProgressMonitor())
          _metadataFile = _metadataFolder.getFile(_tmlFile.getName().substring(0, _tmlFile.getName().length() - _tmlFile.getFileExtension().length()) + "metadata.xml");
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

  private static XStream createXStream() {
    XStream xstream = new XStream(new DomDriver());
    xstream.setClassLoader(TMLTagDefinitions.class.getClassLoader());
    xstream.setMode(XStream.NO_REFERENCES);
    xstream.alias("tagDefinitions", TMLTagDefinitions.class);
    xstream.alias("tag", TMLTag.class);
    xstream.alias("attribute", TMLTagAttribute.class);
    xstream.alias("attributeGroup", TMLAttributeGroup.class);

    addXStreamAliasFields(xstream, getXStreamAliasFields(), TMLTagDefinitions.class);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

  private static XStream createXStream() {
    XStream xstream = new XStream(new DomDriver());
    xstream.setClassLoader(TMLTagDefinitions.class.getClassLoader());
    xstream.setMode(XStream.NO_REFERENCES);
    xstream.alias("tagDefinitions", TMLTagDefinitions.class);
    xstream.alias("tag", TMLTag.class);
    xstream.alias("attribute", TMLTagAttribute.class);
    xstream.alias("attributeGroup", TMLAttributeGroup.class);

    addXStreamAliasFields(xstream, getXStreamAliasFields(), TMLTagDefinitions.class);
    addXStreamAliasFields(xstream, TMLAttributeGroup.getXStreamAliasFields(), TMLAttributeGroup.class);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

    XStream xstream = new XStream(new DomDriver());
    xstream.setClassLoader(TMLTagDefinitions.class.getClassLoader());
    xstream.setMode(XStream.NO_REFERENCES);
    xstream.alias("tagDefinitions", TMLTagDefinitions.class);
    xstream.alias("tag", TMLTag.class);
    xstream.alias("attribute", TMLTagAttribute.class);
    xstream.alias("attributeGroup", TMLAttributeGroup.class);

    addXStreamAliasFields(xstream, getXStreamAliasFields(), TMLTagDefinitions.class);
    addXStreamAliasFields(xstream, TMLAttributeGroup.getXStreamAliasFields(), TMLAttributeGroup.class);
    addXStreamAliasFields(xstream, TMLTag.getXStreamAliasFields(), TMLTag.class);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

    xstream.setClassLoader(TMLTagDefinitions.class.getClassLoader());
    xstream.setMode(XStream.NO_REFERENCES);
    xstream.alias("tagDefinitions", TMLTagDefinitions.class);
    xstream.alias("tag", TMLTag.class);
    xstream.alias("attribute", TMLTagAttribute.class);
    xstream.alias("attributeGroup", TMLAttributeGroup.class);

    addXStreamAliasFields(xstream, getXStreamAliasFields(), TMLTagDefinitions.class);
    addXStreamAliasFields(xstream, TMLAttributeGroup.getXStreamAliasFields(), TMLAttributeGroup.class);
    addXStreamAliasFields(xstream, TMLTag.getXStreamAliasFields(), TMLTag.class);
    addXStreamAliasFields(xstream, TMLTagAttribute.getXStreamAliasFields(), TMLTagAttribute.class);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

    // Implementation methods
    // -------------------------------------------------------------------------
    protected XStream createXStream() {
        XStream answer = new XStream();
        answer.alias("invoke", LingoInvocation.class);
        answer.alias("result", RemoteInvocationResult.class);
        return answer;
    }

    protected Object fromXML(String xml) {
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

    // Implementation methods
    // -------------------------------------------------------------------------
    protected XStream createXStream() {
        XStream answer = new XStream();
        answer.alias("invoke", LingoInvocation.class);
        answer.alias("result", RemoteInvocationResult.class);
        return answer;
    }

    protected Object fromXML(String xml) {
        return getXStream().fromXML(xml);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

    String domain, editor, icon, view;
  }

  private static void init(String resource) throws Exception {
    XStream xstream = new XStream();
    xstream.alias("jease", List.class);
    xstream.alias("component", Component.class);
    Enumeration<URL> urls = Registry.class.getClassLoader().getResources(
        resource);
    while (urls.hasMoreElements()) {
      InputStream url = urls.nextElement().openStream();
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

  }

  private static void init(String resource) throws Exception {
    XStream xstream = new XStream();
    xstream.alias("jease", List.class);
    xstream.alias("component", Component.class);
    Enumeration<URL> urls = Registry.class.getClassLoader().getResources(
        resource);
    while (urls.hasMoreElements()) {
      InputStream url = urls.nextElement().openStream();
      for (Component component : (List<Component>) xstream.fromXML(url)) {
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.alias()

   *      java.lang.String)
   */
  public ArrayList<String> getFlexions(String partOfSpeech, String word) {
    InputStream xmlReplyStream = retreiveXMLReply(partOfSpeech, word);
    XStream xstream = XStreamHelper.createXStreamInstance();
    xstream.alias("xml", FlexionReply.class);
    xstream.alias("wordform", String.class);
    ArrayList<String> stemWithWordforms;
    try {
      Object msReply = XStreamHelper.readObject(xstream, xmlReplyStream);
      FlexionReply flexionReply = (FlexionReply) msReply;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.