com.aspose.network
Class MapiNamedPropertyMappingStorage

java.lang.Object
  extended by com.aspose.network.MapiPropertyContainer
      extended by com.aspose.network.MapiNamedPropertyMappingStorage

public final class MapiNamedPropertyMappingStorage
extends MapiPropertyContainer

Represents the named property mapping


Constructor Summary
MapiNamedPropertyMappingStorage()
           Initializes a new instance of the MapiNamedPropertyMappingStorage class.
 
Method Summary
 void addNamedPropertyMapping(MapiProperty property, long nameId, UUID guid)
           Adds the named property mapping for numeric named property.
 void addNamedPropertyMapping(MapiProperty property, String nameId, UUID guid)
           Adds the named property mapping for string named property.
 Object Content()
           Gets the content
 String getName()
           Gets the name
 long getNextAvailablePropertyId(int dataType)
           Gets the next available property id in entries stream based on property datatype.
 void setProperty(MapiProperty property)
           Sets the property.
 
Methods inherited from class com.aspose.network.MapiPropertyContainer
createMapiNode, getCodePage, getMyProperties, getProperties, getPropertyBoolean, getPropertyBytes, getPropertyDateTime, getPropertyInt32, getPropertyLong, getPropertyShort, getPropertyString, getPropertyString, setNamedPropertyMapping, setProperty, setProperty, setProperty, setProperty, setProperty, setPropertySet, tryGetPropertyData, tryGetPropertyDateTime, tryGetPropertyInt32, tryGetPropertyLong, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapiNamedPropertyMappingStorage

public MapiNamedPropertyMappingStorage()

Initializes a new instance of the MapiNamedPropertyMappingStorage class.

Method Detail

getName

public String getName()

Gets the name

Value: The name


Content

public Object Content()

Gets the content

Value: The content


setProperty

public void setProperty(MapiProperty property)
Description copied from class: MapiPropertyContainer

Sets the property.

Specified by:
setProperty in class MapiPropertyContainer
Parameters:
property - The property.

getNextAvailablePropertyId

public long getNextAvailablePropertyId(int dataType)

Gets the next available property id in entries stream based on property datatype.

Parameters:
dataType - Type of the data for the property.
Returns:
An id that can be lately used to add property mapping.

addNamedPropertyMapping

public void addNamedPropertyMapping(MapiProperty property,
                                    long nameId,
                                    UUID guid)

Adds the named property mapping for numeric named property.

Parameters:
property - The property to add mapping for.
nameId - The name id.
guid - The GUID identifying property set.


property should have a valid id for named property, GetNextAvailablePropertyId can be used to generate one. Otherwise an exception will be thrown.

Throws:
com.aspose.ms.System.ArgumentNullException - if property is null.
com.aspose.ms.System.ArgumentException - if MapiProperty.Tag can'be used for named property mapping. The range for named property identifiers is between 0x8000 and 0xFFFE.

addNamedPropertyMapping

public void addNamedPropertyMapping(MapiProperty property,
                                    String nameId,
                                    UUID guid)

Adds the named property mapping for string named property.

Parameters:
property - The property to add mapping for.
nameId - The name id.
guid - The GUID identifying property set.


property should have a valid id for named property, GetNextAvailablePropertyId can be used to generate one. Otherwise an exception will be thrown.

Throws:
com.aspose.ms.System.ArgumentNullException - if nameId is null.
com.aspose.ms.System.ArgumentNullException - if property is null.
ArgumentException} - if MapiProperty.Tag can'be used for named property mapping. The range for named property identifiers is between 0x8000 and 0xFFFE.


Copyright (c) 2002-2011 Aspose Pty Ltd. All Rights Reserved.