org.exolab.castor.xml.util
Class XMLParserUtils

java.lang.Object
  extended by org.exolab.castor.xml.util.XMLParserUtils

public class XMLParserUtils
extends java.lang.Object

A couple of routines to manipulate XMLParser instances. Mostly extracted from 'old' LocalConfiguration class.

Since:
1.1.3
Version:
$Id$
Author:
Joachim Grueneis, jgrueneis_at_gmail_dot_com

Field Summary
(package private) static org.apache.commons.logging.Log LOG
          Logger to be used.
 
Constructor Summary
XMLParserUtils()
           
 
Method Summary
static OutputFormat getOutputFormat(AbstractProperties properties)
           
static org.xml.sax.Parser getParser(AbstractProperties properties, java.lang.String features)
           
static javax.xml.parsers.SAXParser getSAXParser(boolean validation, boolean namespaces)
          To get a SAXParser instance which is then used to get either parser or XMLReader.
static Serializer getSerializer(AbstractProperties properties)
           
static XMLSerializerFactory getSerializerFactory(java.lang.String serializerFactoryName)
          Returns the currently configured XMLSerializerFactory instance.
static org.xml.sax.Parser instantiateParser(java.lang.String className)
          Instantiates an Parser instance directly, using Class.forName(String) to obtain the Class instance, and uses Class.newInstance() to create the actuall.resolvers">ByMappingLoader
public interface ResolverClassCommand

A command used by a resolver strategy to get class descriptors. A command may return none, a single class descriptor or multiple class descriptors and even if class descriptors are returned, is not garanteed that the requested descriptor is within. No exceptions are thrown if the class could not be resolved - this is a possible result! Commands are planned to be something like a service which might get invoked multiple times in parallel. So no resolve specific states are allowed to be stored in the class state!

Since:
1.2
Version:
$Revision$ $Date$
Author:
Joachim Grueneis

Method Summary
 java.util.Map resolve(java.lang.String className, java.util.Map p)
          The one and only purpose resolver commands are good for ;-) .
 

Method Detail

resolve

java.util.Map resolve(java.lang.String className,
                      java.util.Map p)
                      throws ResolverException
The one and only purpose resolver commands are good for ;-) . It can be called with className and clazz set, so the command decides which suites it best or at least one of the two arguments set.

Parameters:
className - the name of the class to resolve
p - the Properties to be used at resolve
Returns:
a Map of className and XMLClassDescriptor
Throws:
java.lang.IllegalArgumentException - if both parameters are null
ResolverException - in case that resolving fails fatally


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com ./usr/share/doc/libcastor-xml-java/api/org/exolab/castor/xml/util/XMLParserUtils.html0000644000000000000000000005001411712421201027465 0ustar rootroot XMLParserUtils (Castor JavaDoc)

org.exolab.castor.xml.util
Class XMLParserUtils

java.lang.Object
  extended by org.exolab.castor.xml.util.XMLParserUtils

public class XMLParserUtils
extends java.lang.Object

A couple of routines to manipulate XMLParser instances. Mostly extracted from 'old' LocalConfiguration class.

Since:
1.1.3
Version:
$Id$
Author:
Joachim Grueneis, jgrueneis_at_gmail_dot_com