public final class LibraryBuilder extends java.lang.Object implements Thawed<Library>
This is what you will use when you wish to create your own metaschema and add either new keywords or format attributes to it.
Important note: if you add a keyword which already existed in this builder, all traces of its previous definition, if any, will be removed.
| Modifier and Type | Method and Description |
|---|---|
LibraryBuilder |
addFormatAttribute(java.lang.String name,
FormatAttribute attribute)
Add a format attribute
|
LibraryBuilder |
addKeyword(Keyword keyword)
Add a new keyword to this library
|
Library |
freeze()
Return a frozen version of this builder
|
LibraryBuilder |
removeFormatAttribute(java.lang.String name)
Remove a format attribute by its name
|
LibraryBuilder |
removeKeyword(java.lang.String name)
Remove a keyword by its name
|
public LibraryBuilder addKeyword(Keyword keyword)
keyword - the keywordjava.lang.NullPointerException - keyword is nullpublic LibraryBuilder removeKeyword(java.lang.String name)
name - the namejava.lang.NullPointerException - name is nullpublic LibraryBuilder addFormatAttribute(java.lang.String name, FormatAttribute attribute)
name - the name for this attributeattribute - the format attributejava.lang.NullPointerException - the name or attribute is nullpublic LibraryBuilder removeFormatAttribute(java.lang.String name)
name - the format attribute namejava.lang.NullPointerException - name is null