org.alfresco.jcr.importer
Class PropertyContext

java.lang.Object
  extended by org.alfresco.repo.importer.view.ElementContext
      extended by org.alfresco.jcr.importer.PropertyContext

public class PropertyContext
extends ElementContext

Maintains state about currently imported Property


Constructor Summary
PropertyContext(org.alfresco.service.namespace.QName elementName, NodeContext parentContext, org.alfresco.service.namespace.QName propertyName, org.alfresco.service.namespace.QName propertyType)
          Construct
 
Method Summary
 void appendCharacters(char[] ch, int start, int length)
          Append property value characters
 void endValue()
          End a property value
 org.alfresco.service.namespace.QName getName()
          Get property name
 NodeContext getNode()
          Get node containing property
 org.alfresco.service.namespace.QName getType()
          Get property type
 java.util.List getValues()
          Get property values
 boolean isMultiValue()
          Is property multi-valued?
 boolean isNull()
          Is null property value
 void startValue()
          Start a new property value
 
Methods inherited from class org.alfresco.repo.importer.view.ElementContext
getDictionaryService, getElementName, getImporter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyContext

public PropertyContext(org.alfresco.service.namespace.QName elementName,
                       NodeContext parentContext,
                       org.alfresco.service.namespace.QName propertyName,
                       org.alfresco.service.namespace.QName propertyType)
Construct

Parameters:
elementName -
parentContext -
propertyName -
propertyType -
Method Detail

getNode

public NodeContext getNode()
Get node containing property

Returns:
node

getName

public org.alfresco.service.namespace.QName getName()
Get property name

Returns:
property name

getType

public org.alfresco.service.namespace.QName getType()
Get property type

Returns:
property type

isMultiValue

public boolean isMultiValue()
Is property multi-valued?

Returns:
true => multi-valued; false => single value

isNull

public boolean isNull()
Is null property value

Returns:
true => value has not been provided

getValues

public java.util.List getValues()
Get property values

Returns:
values

startValue

public void startValue()
Start a new property value


endValue

public void endValue()
End a property value


appendCharacters

public void appendCharacters(char[] ch,
                             int start,
                             int length)
Append property value characters

Parameters:
ch -
start -
length -


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.