org.apache.jackrabbit.core.xml
Class PropInfo

java.lang.Object
  extended by org.apache.jackrabbit.core.xml.PropInfo

public class PropInfo
extends Object

Information about a property being imported. This class is used by the XML import handlers to pass the parsed property information through the Importer interface to the actual import process.

In addition to carrying the actual property data, instances of this class also know how to apply that data when imported either to a NodeImpl instance through a session or directly to a NodeState instance in a workspace.


Constructor Summary
PropInfo(QName name, int type, TextValue[] values)
          Creates a proprety information instance.
 
Method Summary
 void apply(NodeImpl node, NamespaceResolver resolver, ReferenceChangeTracker refTracker)
           
 void apply(NodeState node, BatchedItemOperations itemOps, NodeTypeRegistry ntReg, ReferenceChangeTracker refTracker)
           
 void dispose()
          Disposes all values contained in this property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropInfo

public PropInfo(QName name,
                int type,
                TextValue[] values)
Creates a proprety information instance.

Parameters:
name - name of the property being imported
type - type of the property being imported
values - value(s) of the property being imported
Method Detail

dispose

public void dispose()
Disposes all values contained in this property.


apply

public void apply(NodeImpl node,
                  NamespaceResolver resolver,
                  ReferenceChangeTracker refTracker)
           throws RepositoryException
Throws:
RepositoryException

apply

public void apply(NodeState node,
                  BatchedItemOperations itemOps,
                  NodeTypeRegistry ntReg,
                  ReferenceChangeTracker refTracker)
           throws RepositoryException
Throws:
RepositoryException


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.