Project JXTA

net.jxta.impl.config
Class CodeDescriptor

java.lang.Object
  |
  +--net.jxta.impl.config.CodeDescriptor

public class CodeDescriptor
extends java.lang.Object

Simple class for an "implementation descriptor", which is just a fancy way for saying a concrete classname together with a URI where the class can be found. Instances of this class are immutable.


Constructor Summary
CodeDescriptor(java.lang.String aClassname, java.lang.String aCodeURI)
          Constructs a a new CodeDescriptor object.
 
Method Summary
 java.lang.String getClassname()
          Returns the classname for the code
 java.lang.String getCodeURI()
          Returns the URI for the code
static CodeDescriptor newFromXML(net.jxta.document.TextElement aElement)
          Creates the descriptor from an XML element
 void writeToXML(net.jxta.document.StructuredTextDocument aDoc, net.jxta.document.Element aNode)
          adds the classname and uri as elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeDescriptor

public CodeDescriptor(java.lang.String aClassname,
                      java.lang.String aCodeURI)
Constructs a a new CodeDescriptor object.
Method Detail

getClassname

public java.lang.String getClassname()
Returns the classname for the code

getCodeURI

public java.lang.String getCodeURI()
Returns the URI for the code

writeToXML

public void writeToXML(net.jxta.document.StructuredTextDocument aDoc,
                       net.jxta.document.Element aNode)
adds the classname and uri as elements. aNode is the node for this CodeDescriptor

newFromXML

public static CodeDescriptor newFromXML(net.jxta.document.TextElement aElement)
Creates the descriptor from an XML element

Project JXTA