Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.engine
Class DescriptorBuilder

java.lang.Object
  extended byorg.evolvica.engine.DescriptorBuilder

public class DescriptorBuilder
extends java.lang.Object

Builder for loading operator descriptors.

Since:
0.6.0
Version:
$Revision: 1.3 $ $Date: 2004/05/26 11:58:23 $
Author:
Andreas Rummler

Constructor Summary
DescriptorBuilder()
           
 
Method Summary
static OperatorDescriptor build(org.w3c.dom.Document document)
          Builds a descriptor from the given XML document.
static OperatorDescriptor build(java.io.InputStream stream)
          Loads a descriptor from the given input stream.
static OperatorDescriptor build(java.net.URI uri)
          Loads a descriptor from the given URI.
static void updateDescriptor(org.w3c.dom.Element element, AttributeDescriptor descriptor)
          Updates an existing attribute descriptor with the information from the given XML element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptorBuilder

public DescriptorBuilder()
Method Detail

build

public static OperatorDescriptor build(java.net.URI uri)
                                throws SerializationException
Loads a descriptor from the given URI.

Parameters:
uri - URI to load descriptor from
Returns:
created descriptor
Throws:
SerializationException - thrown in case the loading of the descriptor fails

build

public static OperatorDescriptor build(java.io.InputStream stream)
                                throws SerializationException
Loads a descriptor from the given input stream.

Parameters:
stream - input stream to load descriptor from
Returns:
created descriptor
Throws:
SerializationException - thrown in case the loading of the descriptor fails

build

public static OperatorDescriptor build(org.w3c.dom.Document document)
                                throws SerializationException
Builds a descriptor from the given XML document.

Parameters:
document - XML document to create the descriptor from
Returns:
created descriptor
Throws:
SerializationException - thrown in case the descriptor building fails

updateDescriptor

public static void updateDescriptor(org.w3c.dom.Element element,
                                    AttributeDescriptor descriptor)
Updates an existing attribute descriptor with the information from the given XML element. This method is just for backward compatibility and will be removed in the future.

Parameters:
element - XML element
descriptor - attribute descriptor to be updated

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems