public class DocumentPackageAttributesBuilder extends Object
DocumentPackageAttributesBuilder is a convenient class used to create and customize a package's attributes.
Constructor and Description |
---|
DocumentPackageAttributesBuilder(Map<String,Object> map)
The constructor of the document package attributes builder and set attribute map.
|
Modifier and Type | Method and Description |
---|---|
DocumentPackageAttributes |
build()
Builds an actual document package attributes.
|
static DocumentPackageAttributesBuilder |
newDocumentPackageAttributes()
Creates a new document package attributes builder.
|
DocumentPackageAttributesBuilder |
withAttribute(String name,
Object value)
Adds an attribute to the package's attribute map.
|
public static DocumentPackageAttributesBuilder newDocumentPackageAttributes()
public DocumentPackageAttributesBuilder withAttribute(String name, Object value)
name
- the name of the attribute @size(min="1", max="255")value
- the value of the attribute @size(min="1", max="255")public DocumentPackageAttributes build()
Copyright 2014, Silanis Technology, Inc. All rights reserved.