org.apache.james.mailbox.jpa.mail.model
Class JPAProperty

java.lang.Object
  extended by org.apache.james.mailbox.jpa.mail.model.JPAProperty
All Implemented Interfaces:
Property

@Entity(name="Property")
public class JPAProperty
extends Object
implements Property


Constructor Summary
JPAProperty()
          Deprecated. enhancement only
JPAProperty(JPAProperty property)
          Create a copy of the give JPAProperty
JPAProperty(Property property, int order)
          Constructs a property cloned from the given.
JPAProperty(String namespace, String localName, String value, int order)
          Constructs a property.
 
Method Summary
 boolean equals(Object obj)
           
 String getLocalName()
          Gets the local part of the name of the property.
 String getNamespace()
          Gets the namespace for the name.
 int getOrder()
          Gets the order of this property.
 String getValue()
          Gets the value for this property.
 int hashCode()
           
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPAProperty

@Deprecated
public JPAProperty()
Deprecated. enhancement only


JPAProperty

public JPAProperty(String namespace,
                   String localName,
                   String value,
                   int order)
Constructs a property.

Parameters:
localName - not null
namespace - not null
value - not null

JPAProperty

public JPAProperty(Property property,
                   int order)
Constructs a property cloned from the given.

Parameters:
property - not null

JPAProperty

public JPAProperty(JPAProperty property)
Create a copy of the give JPAProperty

Parameters:
property -
Method Detail

getOrder

public int getOrder()
Gets the order of this property.

Returns:
order of this property

getLocalName

public String getLocalName()
Gets the local part of the name of the property.

Specified by:
getLocalName in interface Property
Returns:
not null

getNamespace

public String getNamespace()
Gets the namespace for the name.

Specified by:
getNamespace in interface Property
Returns:
not null

getValue

public String getValue()
Gets the value for this property.

Specified by:
getValue in interface Property
Returns:
not null

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.