org.jboss.xb.binding.sunday.marshalling
Class MarshallerImpl
java.lang.Object
org.jboss.xb.binding.AbstractMarshaller
org.jboss.xb.binding.sunday.marshalling.MarshallerImpl
- All Implemented Interfaces:
- Marshaller
public class MarshallerImpl
- extends AbstractMarshaller
- Version:
- $Revision: 1.5 $
- Author:
- Alexey Loubyansky
Method Summary |
void |
addAttribute(String prefix,
String localName,
String type,
String value)
Adds an attribute to the top most elements. |
javax.xml.namespace.QName |
getRootTypeQName()
|
SchemaBindingResolver |
getSchemaResolver()
|
boolean |
isIgnoreUnresolvedWildcard()
|
boolean |
isSupportNil()
|
void |
marshal(Reader xsdReader,
ObjectModelProvider provider,
Object root,
Writer writer)
|
void |
marshal(SchemaBinding model,
ObjectModelProvider provider,
Object root,
Writer writer)
|
void |
marshal(String xsdURL,
ObjectModelProvider provider,
Object root,
Writer writer)
|
void |
setIgnoreUnresolvedWildcard(boolean ignoreUnresolvedWildcard)
|
void |
setRootTypeQName(javax.xml.namespace.QName rootTypeQName)
|
void |
setSchemaResolver(SchemaBindingResolver schemaResolver)
|
void |
setSupportNil(boolean supportNil)
|
Methods inherited from class org.jboss.xb.binding.AbstractMarshaller |
addRootElement, addRootElement, declareNamespace, getClassMapping, getPrefix, getProperty, mapClassToGlobalElement, mapClassToGlobalType, mapClassToXsiType, mapFieldToWildcard, mapPublicIdToSystemId, propertyIsTrueOrNotSet, removeNamespace, setEncoding, setProperty, setVersion, writeXmlVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshallerImpl
public MarshallerImpl()
isIgnoreUnresolvedWildcard
public boolean isIgnoreUnresolvedWildcard()
setIgnoreUnresolvedWildcard
public void setIgnoreUnresolvedWildcard(boolean ignoreUnresolvedWildcard)
getSchemaResolver
public SchemaBindingResolver getSchemaResolver()
setSchemaResolver
public void setSchemaResolver(SchemaBindingResolver schemaResolver)
getRootTypeQName
public javax.xml.namespace.QName getRootTypeQName()
setRootTypeQName
public void setRootTypeQName(javax.xml.namespace.QName rootTypeQName)
isSupportNil
public boolean isSupportNil()
setSupportNil
public void setSupportNil(boolean supportNil)
addAttribute
public void addAttribute(String prefix,
String localName,
String type,
String value)
- Adds an attribute to the top most elements.
First, we check whether there is a namespace associated with the passed in prefix.
If the prefix was not declared, an exception is thrown.
- Specified by:
addAttribute
in class AbstractMarshaller
- Parameters:
prefix
- the prefix of the attribute to be declaredlocalName
- local name of the attributetype
- the type of the attributevalue
- the value of the attribute
marshal
public void marshal(Reader xsdReader,
ObjectModelProvider provider,
Object root,
Writer writer)
throws IOException,
SAXException,
ParserConfigurationException
- Throws:
IOException
SAXException
ParserConfigurationException
marshal
public void marshal(String xsdURL,
ObjectModelProvider provider,
Object root,
Writer writer)
throws IOException,
SAXException
- Specified by:
marshal
in interface Marshaller
- Overrides:
marshal
in class AbstractMarshaller
- Throws:
IOException
SAXException
marshal
public void marshal(SchemaBinding model,
ObjectModelProvider provider,
Object root,
Writer writer)
throws IOException,
SAXException
- Throws:
IOException
SAXException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.