Package com.thoughtworks.xstream

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


    _metadataFolder = _tmlFile.getParent().getFolder(new Path("metadata"));
    if (_metadataFolder.exists()) {
      _metadataFile = _metadataFolder.getFile(_tmlFile.getName().substring(0, _tmlFile.getName().length() - _tmlFile.getFileExtension().length()) + "metadata.xml");
      if (_metadataFile.exists()) {
        XStream xstream = new XStream(new DomDriver());
        xstream.alias(TMLMetadataInfo.XSTREAM_ALIAS, TMLMetadataInfo.class);
        Reader reader = null;
        try {
          if(!_metadataFile.isSynchronized(IResource.DEPTH_ZERO)){
            _metadataFile.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());
          }
View Full Code Here


      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

  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

  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

    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

    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

    // 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

    // 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

    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

  }

  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

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.