ruper2/src/java/core/org/krysalis/ruper/config ConfigXMLEntryTable.java,NONE,1.1 RuperConfig.java,1.4,1.5

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/config
In directory sc8-pr-cvs1:/tmp/cvs-serv8991/src/java/core/org/krysalis/ruper/config

Modified Files:
	RuperConfig.java 
Added Files:
	ConfigXMLEntryTable.java 
Log Message:
split the configXML from the general XML

The child add from the XML and the attributes for the RepositoryAttribute
tested

--- NEW FILE: ConfigXMLEntryTable.java ---
/*
 * Created on Sep 12, 2003
  */
package org.krysalis.ruper.config;

import org.krysalis.ruper.protocols.VirtualResourceLocator;
import org.krysalis.ruper.repository.RepositoryAttribute;
import org.krysalis.ruper.repository.RepositorySet;
import org.krysalis.ruper.util.xml.XMLEntryTable;
import org.krysalis.ruper.util.xml.XMLGrouperElement;
import org.krysalis.ruper.util.xml.XMLTagConstants;

/**
 * @author anou_mana
 */
public class ConfigXMLEntryTable extends XMLEntryTable {

	/**
	 * 
	 */
	public ConfigXMLEntryTable() {
		super();
		this.m_entryToClassMap.put(XMLTagConstants.CONFIG_TAG, XMLGrouperElement.XML_GROUPER_ELEMENT_CLASSNAME);
		this.m_entryToClassMap.put(XMLTagConstants.REPOSITORYSET_TAG, RepositorySet.REPOSITORYSET_CLASSNAME);
		this.m_entryToClassMap.put(XMLTagConstants.REPOSITORY_URL_TAG, VirtualResourceLocator.VRL_CLASSNAME);
		this.m_entryToClassMap.put(XMLTagConstants.REPOSITORY_ACTIVE_TAG, RepositoryAttribute.REPOSITORY_ATTRIBUTE_CLASSNAME);
		this.m_entryToClassMap.put(XMLTagConstants.REPOSITORY_REMOTE_TAG, RepositoryAttribute.REPOSITORY_ATTRIBUTE_CLASSNAME);

	}

}

Index: RuperConfig.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/config/RuperConfig.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RuperConfig.java	10 Sep 2003 21:05:02 -0000	1.4
--- RuperConfig.java	12 Sep 2003 15:19:42 -0000	1.5
***************
*** 28,32 ****
  			File configFile = new File(configFileName);
  
! 			XMLEntryTable xmlEntryTable = new XMLEntryTable();
  
  			XMLParser parser = new XMLParser(xmlEntryTable);
--- 28,32 ----
  			File configFile = new File(configFileName);
  
! 			XMLEntryTable xmlEntryTable = new ConfigXMLEntryTable();
  
  			XMLParser parser = new XMLParser(xmlEntryTable);




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.