You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/03/01 02:48:14 UTC

[james-project] 06/08: MAILBOX-381 Propose a simple way to generate an attribute from an AttributeName

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 3141fa67cfaf8f4897d4061a998da9262019d266
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Feb 26 11:48:58 2019 +0700

    MAILBOX-381 Propose a simple way to generate an attribute from an AttributeName
---
 mailet/api/src/main/java/org/apache/mailet/AttributeName.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mailet/api/src/main/java/org/apache/mailet/AttributeName.java b/mailet/api/src/main/java/org/apache/mailet/AttributeName.java
index 5322d7e..5345810 100644
--- a/mailet/api/src/main/java/org/apache/mailet/AttributeName.java
+++ b/mailet/api/src/main/java/org/apache/mailet/AttributeName.java
@@ -44,6 +44,10 @@ public class AttributeName {
         this.name = name;
     }
 
+    public Attribute withValue(AttributeValue<?> value) {
+        return new Attribute(this, value);
+    }
+
     public String asString() {
         return name;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org