org.alfresco.repo.attributes
Class AttributeConverter

java.lang.Object
  extended by org.alfresco.repo.attributes.AttributeConverter

public class AttributeConverter
extends java.lang.Object

Handles conversions between persistent and value based Attributes.

See Also:
Attribute.Type.getAttributeImpl(Attribute), Attribute.Type.getAttributeValue(Attribute)

Constructor Summary
AttributeConverter()
           
 
Method Summary
 Attribute toPersistent(Attribute from)
          Convert an Attribute (recursively) to a persistent attribute.
 Attribute toValue(Attribute from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeConverter

public AttributeConverter()
Method Detail

toPersistent

public Attribute toPersistent(Attribute from)
Convert an Attribute (recursively) to a persistent attribute. This persists the newly created Attribute immediately.

Parameters:
from - The Attribute to clone.
Returns:
The cloned persistent Attribute.

toValue

public Attribute toValue(Attribute from)


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