Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.castor.xml.AbstractInternalContext
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 Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
Boolean |
|
ClassLoader | |
Introspector | |
JavaNaming | |
boolean | |
boolean | |
Boolean | |
MappingLoader | |
OutputFormat | |
Parser | |
Parser |
|
NodeType | |
Object |
|
RegExpEvaluator | |
ResolverStrategy | |
Serializer | |
DocumentHandler |
|
DocumentHandler |
|
protected XMLSerializerFactory |
|
String |
|
Boolean | |
XMLClassDescriptorResolver | |
XMLNaming | |
XMLNaming |
|
XMLReader | |
XMLReader |
|
boolean | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
boolean |
public AbstractInternalContext()
Creates an instance ofAbstractInternalContext
. The internal context is meant to hold the configuration and state informations, but not necessarily retrieving those values...
public void addClass(Class clazz) throws ResolverException
- Specified by:
- addClass in interface InternalContext
- See Also:
org.castor.xml.InternalContext.addClass(java.lang.Class)
public void addClasses(Class[] clazzes) throws ResolverException
- Specified by:
- addClasses in interface InternalContext
- See Also:
org.castor.xml.InternalContext.addClasses(java.lang.Class[])
public void addMapping(Mapping mapping) throws MappingException
- Specified by:
- addMapping in interface InternalContext
- See Also:
InternalContext.addMapping(Mapping)
public void addPackage(String packageName) throws ResolverException
- Specified by:
- addPackage in interface InternalContext
- See Also:
org.castor.xml.InternalContext.addPackage(java.lang.String)
public void addPackages(String[] packageNames) throws ResolverException
- Specified by:
- addPackages in interface InternalContext
- See Also:
org.castor.xml.InternalContext.addPackages(java.lang.String[])
public Boolean getBooleanProperty(String propertyName)
- Specified by:
- getBooleanProperty in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getBooleanProperty(java.lang.String)
public ClassLoader getClassLoader()
- Specified by:
- getClassLoader in interface InternalContext
- See Also:
InternalContext.getClassLoader()
public Introspector getIntrospector()
- Specified by:
- getIntrospector in interface InternalContext
- See Also:
InternalContext.getIntrospector()
public JavaNaming getJavaNaming()
- Specified by:
- getJavaNaming in interface InternalContext
- See Also:
InternalContext.getJavaNaming()
public boolean getLenientIdValidation()
- Specified by:
- getLenientIdValidation in interface InternalContext
public boolean getLenientSequenceOrder()
- Specified by:
- getLenientSequenceOrder in interface InternalContext
public Boolean getLoadPackageMapping()
- Specified by:
- getLoadPackageMapping in interface InternalContext
public MappingLoader getMappingLoader()
- Specified by:
- getMappingLoader in interface InternalContext
- See Also:
InternalContext.getMappingLoader()
public OutputFormat getOutputFormat()
- Specified by:
- getOutputFormat in interface InternalContext
- See Also:
InternalContext.getOutputFormat()
public Parser getParser()
- Specified by:
- getParser in interface InternalContext
- See Also:
InternalContext.getParser()
public Parser getParser(String features)
- Specified by:
- getParser in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getParser(java.lang.String)
public NodeType getPrimitiveNodeType()
- Specified by:
- getPrimitiveNodeType in interface InternalContext
public Object getProperty(String propertyName)
- Specified by:
- getProperty in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getProperty(java.lang.String)
public RegExpEvaluator getRegExpEvaluator()
- Specified by:
- getRegExpEvaluator in interface InternalContext
- See Also:
InternalContext.getRegExpEvaluator()
public ResolverStrategy getResolverStrategy()
- Specified by:
- getResolverStrategy in interface InternalContext
public Serializer getSerializer()
- Specified by:
- getSerializer in interface InternalContext
- See Also:
InternalContext.getSerializer()
public DocumentHandler getSerializer(OutputStream output) throws IOException
- Specified by:
- getSerializer in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getSerializer(java.io.OutputStream)
public DocumentHandler getSerializer(Writer output) throws IOException
- Specified by:
- getSerializer in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getSerializer(java.io.Writer)
protected XMLSerializerFactory getSerializerFactory(String serializerFactoryName)
Returns the currently configured XMLSerializerFactory instance.
- Parameters:
serializerFactoryName
- the class name of the serializer factory
- Returns:
- XMLSerializerFactory to use by Castor
public String getStringProperty(String propertyName)
- Specified by:
- getStringProperty in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getStringProperty(java.lang.String)
public Boolean getUseIntrospector()
- Specified by:
- getUseIntrospector in interface InternalContext
- See Also:
InternalContext.getUseIntrospector()
public XMLClassDescriptorResolver getXMLClassDescriptorResolver()
- Specified by:
- getXMLClassDescriptorResolver in interface InternalContext
public XMLNaming getXMLNaming()
- Specified by:
- getXMLNaming in interface InternalContext
- See Also:
InternalContext.getXMLNaming()
public XMLNaming getXMLNaming(ClassLoader classLoader)
- Specified by:
- getXMLNaming in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getXMLNaming(java.lang.ClassLoader)
public XMLReader getXMLReader()
- Specified by:
- getXMLReader in interface InternalContext
- See Also:
InternalContext.getXMLReader()
public XMLReader getXMLReader(String features)
- Specified by:
- getXMLReader in interface InternalContext
- See Also:
org.castor.xml.InternalContext.getXMLReader(java.lang.String)
public boolean marshallingValidation()
- Specified by:
- marshallingValidation in interface InternalContext
public void setClassLoader(ClassLoader classLoader)
- Specified by:
- setClassLoader in interface InternalContext
- See Also:
org.castor.xml.InternalContext.setClassLoader(java.lang.ClassLoader)
public void setIntrospector(Introspector introspector)
- Specified by:
- setIntrospector in interface InternalContext
public void setJavaNaming(JavaNaming javaNaming)
- Specified by:
- setJavaNaming in interface InternalContext
public void setLoadPackageMapping(Boolean loadPackageMapping)
- Specified by:
- setLoadPackageMapping in interface InternalContext
- See Also:
org.castor.xml.InternalContext.setLoadPackageMapping(java.lang.Boolean)
public void setMappingLoader(MappingLoader mappingLoader)
- Specified by:
- setMappingLoader in interface InternalContext
public void setProperty(String propertyName, Object value)
- Specified by:
- setProperty in interface InternalContext
- See Also:
org.castor.xml.InternalContext.setProperty(java.lang.String, java.lang.Object)
public void setProperty(String propertyName, boolean value)
- Specified by:
- setProperty in interface InternalContext
- See Also:
org.castor.xml.InternalContext.setProperty(java.lang.String, boolean)
public void setResolver(XMLClassDescriptorResolver xmlClassDescriptorResolver)
- Specified by:
- setResolver in interface InternalContext
public void setResolverStrategy(ResolverStrategy resolverStrategy)
- Specified by:
- setResolverStrategy in interface InternalContext
public void setUseIntrospector(Boolean useIntrospector)
- Specified by:
- setUseIntrospector in interface InternalContext
- See Also:
org.castor.xml.InternalContext.setUseIntrospector(java.lang.Boolean)
public void setXMLClassDescriptorResolver(XMLClassDescriptorResolver xmlClassDescriptorResolver)
- Specified by:
- setXMLClassDescriptorResolver in interface InternalContext
public void setXMLNaming(XMLNaming xmlNaming)
- Specified by:
- setXMLNaming in interface InternalContext
public boolean strictElements()
- Specified by:
- strictElements in interface InternalContext
- See Also:
InternalContext.strictElements()