info.magnolia.importexport.filters
Class RemoveMixversionableFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by info.magnolia.importexport.filters.RemoveMixversionableFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class RemoveMixversionableFilter
extends org.xml.sax.helpers.XMLFilterImpl

A filter that removed "mix:versionable" from jcr:mixinTypes while importing xml files. Can be used to automatically adapt version 3.5 xml files to magnolia 3.6 during bootstrap or activation. You need to modify DataTransporter in order to disable it (see the comments in DataTransporter.importXmlStream())

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
fgiust

Constructor Summary
RemoveMixversionableFilter(XMLReader parent)
          Instantiates a new MetadataUuidFilter filter.
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String localName, String name)
           
 void startElement(String uri, String localName, String name, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveMixversionableFilter

public RemoveMixversionableFilter(XMLReader parent)
Instantiates a new MetadataUuidFilter filter.

Parameters:
parent - wrapped XMLReader
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String name)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.