Save This Page
Home » Castor-1.3-src » org.castor » xml » [javadoc | source]
org.castor.xml
abstract public class: AbstractInternalContext [javadoc | source]
java.lang.Object
   org.castor.xml.AbstractInternalContext

All Implemented Interfaces:
    InternalContext

Direct Known Subclasses:
    BackwardCompatibilityContext

The internal context is meant as center piece providing (and keeping) all information that is required by Marshaller, Unmarshaller, SourceGenerator, MappingTool, SchemaReader and SchemaWriter. It is created, filled with initial data and put into all other parts of Castor by XMLContext . It is NOT meant to be directly instantiated by user implementations! For all other objects it provides access to Castor state information (e.g. known descriptors) and configuration values.
Constructor:
 public AbstractInternalContext() 
Method from org.castor.xml.AbstractInternalContext Summary:
addClass,   addClasses,   addMapping,   addPackage,   addPackages,   getBooleanProperty,   getClassLoader,   getIntrospector,   getJavaNaming,   getLenientIdValidation,   getLenientSequenceOrder,   getLoadPackageMapping,   getMappingLoader,   getOutputFormat,   getParser,   getParser,   getPrimitiveNodeType,   getProperty,   getRegExpEvaluator,   getResolverStrategy,   getSerializer,   getSerializer,   getSerializer,   getSerializerFactory,   getStringProperty,   getUseIntrospector,   getXMLClassDescriptorResolver,   getXMLNaming,   getXMLNaming,   getXMLReader,   getXMLReader,   marshallingValidation,   setClassLoader,   setIntrospector,   setJavaNaming,   setJavaNaming,   setLoadPackageMapping,   setMappingLoader,   setProperty,   setProperty,   setResolver,   setResolverStrategy,   setUseIntrospector,   setXMLClassDescriptorResolver,   setXMLNaming,   setXMLNaming,   strictElements
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.castor.xml.AbstractInternalContext Detail:
 public  void addClass(Class clazz) throws ResolverException 
 public  void addClasses(Class[] clazzes) throws ResolverException 
 public  void addMapping(Mapping mapping) throws MappingException 
 public  void addPackage(String packageName) throws ResolverException 
 public  void addPackages(String[] packageNames) throws ResolverException 
 public Boolean getBooleanProperty(String propertyName) 
 public ClassLoader getClassLoader() 
 public Introspector getIntrospector() 
 public JavaNaming getJavaNaming() 
 public boolean getLenientIdValidation() 
 public boolean getLenientSequenceOrder() 
 public Boolean getLoadPackageMapping() 
 public MappingLoader getMappingLoader() 
 public OutputFormat getOutputFormat() 
 public Parser getParser() 
 public Parser getParser(String features) 
 public NodeType getPrimitiveNodeType() 
 public Object getProperty(String propertyName) 
 public RegExpEvaluator getRegExpEvaluator() 
    {@inheritDoc}
 public ResolverStrategy getResolverStrategy() 
 public Serializer getSerializer() 
 public DocumentHandler getSerializer(OutputStream output) throws IOException 
 public DocumentHandler getSerializer(Writer output) throws IOException 
 protected XMLSerializerFactory getSerializerFactory(String serializerFactoryName) 
    Returns the currently configured XMLSerializerFactory instance.
 public String getStringProperty(String propertyName) 
 public Boolean getUseIntrospector() 
 public XMLClassDescriptorResolver getXMLClassDescriptorResolver() 
 public XMLNaming getXMLNaming() 
    {@inheritDoc}
 public XMLNaming getXMLNaming(ClassLoader classLoader) 
Deprecated! Makes - no sence!

    {@inheritDoc}
 public XMLReader getXMLReader() 
 public XMLReader getXMLReader(String features) 
 public boolean marshallingValidation() 
 public  void setClassLoader(ClassLoader classLoader) 
 public  void setIntrospector(Introspector introspector) 
 public  void setJavaNaming(JavaNaming javaNaming) 
 public  void setJavaNaming(String javaNamingProperty) 
 public  void setLoadPackageMapping(Boolean loadPackageMapping) 
 public  void setMappingLoader(MappingLoader mappingLoader) 
 public  void setProperty(String propertyName,
    Object value) 
    {@inheritDoc}
 public  void setProperty(String propertyName,
    boolean value) 
 public  void setResolver(XMLClassDescriptorResolver xmlClassDescriptorResolver) 
 public  void setResolverStrategy(ResolverStrategy resolverStrategy) 
 public  void setUseIntrospector(Boolean useIntrospector) 
 public  void setXMLClassDescriptorResolver(XMLClassDescriptorResolver xmlClassDescriptorResolver) 
 public  void setXMLNaming(XMLNaming xmlNaming) 
 public  void setXMLNaming(String xmlNamingProperty) 
    This XMLNaming setter is meant to be used when working in property style instead of setting an XMLNaming implementation.
 public boolean strictElements()