Class XmlConfiguration
- java.lang.Object
-
- org.ikasan.component.converter.xml.XmlConfiguration
-
public class XmlConfiguration extends java.lang.ObjectConfiguration for an XML conversion validation.- Author:
- Ikasan Development Team
-
-
Constructor Summary
Constructors Constructor Description XmlConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNamespacePrefix()java.lang.StringgetNamespaceURI()java.lang.StringgetRootClassName()Getter for any root class name overridejava.lang.StringgetRootName()Getter for any roo name overridejava.lang.StringgetSchema()Set an alternate schema to validate against.java.lang.StringgetSchemaLocation()Get the root XSD attribute valuebooleanisFastFailOnConfigurationLoad()booleanisNoNamespaceSchema()If schema specified then is this a noNamespaceSchemabooleanisRouteOnValidationException()Whether to route an XML validation failure to the next component (true) or throw an exception and rollback (false)booleanisUseNamespacePrefix()Getter for use namespace prefix on marshallerbooleanisValidate()Getter to determine whether to validate the XML against the XSDvoidsetFastFailOnConfigurationLoad(boolean fastFailOnConfigurationLoad)voidsetNamespacePrefix(java.lang.String namespacePrefix)voidsetNamespaceURI(java.lang.String namespaceURI)voidsetNoNamespaceSchema(boolean noNamespaceSchema)Setter for noNamespaceSchema if schema specifiedvoidsetRootClassName(java.lang.String rootClassName)Setter for root class name overridevoidsetRootName(java.lang.String rootName)Allow override of the root document namevoidsetRouteOnValidationException(boolean routeOnValidationException)Setter as to whether the component should route or throw an exception on XML validation failure.voidsetSchema(java.lang.String schema)Get an alternate schema to validate against Commonly used if the XSD is picked up from the classpath rather than an http resource URLvoidsetSchemaLocation(java.lang.String schemaLocation)Set the root XSD attribute valuevoidsetUseNamespacePrefix(boolean useNamespacePrefix)Setter for namespace prefix on marshallervoidsetValidate(boolean validate)Setter to determine whether to validate the XML against the XSD
-
-
-
Method Detail
-
isRouteOnValidationException
public boolean isRouteOnValidationException()
Whether to route an XML validation failure to the next component (true) or throw an exception and rollback (false)- Returns:
-
setRouteOnValidationException
public void setRouteOnValidationException(boolean routeOnValidationException)
Setter as to whether the component should route or throw an exception on XML validation failure.- Parameters:
routeOnValidationException-
-
getSchemaLocation
public java.lang.String getSchemaLocation()
Get the root XSD attribute value- Returns:
-
setSchemaLocation
public void setSchemaLocation(java.lang.String schemaLocation)
Set the root XSD attribute value- Parameters:
schemaLocation-
-
getSchema
public java.lang.String getSchema()
Set an alternate schema to validate against. Commonly used if the XSD is picked up from the classpath rather than an http resource URL- Returns:
-
setSchema
public void setSchema(java.lang.String schema)
Get an alternate schema to validate against Commonly used if the XSD is picked up from the classpath rather than an http resource URL- Parameters:
schema-
-
isValidate
public boolean isValidate()
Getter to determine whether to validate the XML against the XSD- Returns:
-
setValidate
public void setValidate(boolean validate)
Setter to determine whether to validate the XML against the XSD- Parameters:
validate-
-
getRootName
public java.lang.String getRootName()
Getter for any roo name override- Returns:
-
setRootName
public void setRootName(java.lang.String rootName)
Allow override of the root document name- Parameters:
rootName-
-
getRootClassName
public java.lang.String getRootClassName()
Getter for any root class name override- Returns:
-
setRootClassName
public void setRootClassName(java.lang.String rootClassName)
Setter for root class name override- Parameters:
rootClassName-
-
isNoNamespaceSchema
public boolean isNoNamespaceSchema()
If schema specified then is this a noNamespaceSchema- Returns:
-
setNoNamespaceSchema
public void setNoNamespaceSchema(boolean noNamespaceSchema)
Setter for noNamespaceSchema if schema specified- Parameters:
noNamespaceSchema-
-
isUseNamespacePrefix
public boolean isUseNamespacePrefix()
Getter for use namespace prefix on marshaller- Returns:
-
setUseNamespacePrefix
public void setUseNamespacePrefix(boolean useNamespacePrefix)
Setter for namespace prefix on marshaller- Parameters:
useNamespacePrefix-
-
isFastFailOnConfigurationLoad
public boolean isFastFailOnConfigurationLoad()
-
setFastFailOnConfigurationLoad
public void setFastFailOnConfigurationLoad(boolean fastFailOnConfigurationLoad)
-
getNamespacePrefix
public java.lang.String getNamespacePrefix()
-
setNamespacePrefix
public void setNamespacePrefix(java.lang.String namespacePrefix)
-
getNamespaceURI
public java.lang.String getNamespaceURI()
-
setNamespaceURI
public void setNamespaceURI(java.lang.String namespaceURI)
-
-