|
What this is
Other links
The source code/* * TargetModuleConverter.java * * Created on August 21, 2003, 7:13 AM */ package org.netbeans.modules.j2ee.deployment.impl; import org.w3c.dom.Element; import org.w3c.dom.Document; import org.w3c.dom.DOMException; import org.w3c.dom.NodeList; import org.netbeans.spi.settings.DOMConvertor; import org.netbeans.spi.settings.Saver; import org.openide.filesystems.FileObject; import org.openide.filesystems.URLMapper; import org.openide.util.Lookup; import org.openide.ErrorManager; import org.openide.util.NbBundle; import org.openide.filesystems.*; import java.util.List; import java.util.Collections; import java.util.ArrayList; import java.io.*; /** * * @author nn136682 */ public class TargetModuleConverter extends DOMConvertor { private static final String PUBLIC_ID = "-//org_netbeans_modules_j2ee//DTD TargetModule 1.0//EN"; // NOI18N private static final String SYSTEM_ID = "nbres:/org/netbeans/modules/j2ee/deployment/impl/target-module.dtd"; // NOI18N private static final String E_TARGET_MODULE_LIST = "target-module-list"; private static final String E_TARGET_MODULE = "target-module"; private static final String A_ID = "id"; private static final String A_INSTANCE_URL = "instance-url"; private static final String A_TARGET_NAME = "target-name"; private static final String A_TIMESTAMP = "timestamp"; private static final String A_CONTENT_DIR = "content-dir"; private static final String A_CONTEXT_ROOT = "context-root"; private Saver saver; public static DOMConvertor create() { return new TargetModuleConverter(); } /** Creates a new instance of TargetModuleConverter */ protected TargetModuleConverter() { super(PUBLIC_ID, SYSTEM_ID, E_TARGET_MODULE_LIST); } protected Object readElement(org.w3c.dom.Element element) throws java.io.IOException, ClassNotFoundException { NodeList targetModuleElements = element.getElementsByTagName(E_TARGET_MODULE); TargetModule[] targetModules = new TargetModule[targetModuleElements.getLength()]; for (int i=0; i |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.