public final class CCustomizations extends ArrayList<CPluginCustomization>
CPluginCustomizations attached to a JAXB model component.
When Plugins register the customization namespace URIs through Plugin.getCustomizationURIs(),
XJC will treat those URIs just like XJC's own extension "http://java.sun.com/xml/ns/xjc" and make them
available as DOM nodes through CPluginCustomization. A Plugin can then access
this information to change its behavior.
| Modifier and Type | Field and Description |
|---|---|
static CCustomizations |
EMPTY
Convenient singleton instance that represents an empty
CCustomizations. |
modCount| Constructor and Description |
|---|
CCustomizations() |
CCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
CPluginCustomization |
find(String nsUri)
Finds the first
CPluginCustomization that belongs to the given namespace URI. |
CPluginCustomization |
find(String nsUri,
String localName)
Finds the first
CPluginCustomization that belongs to the given namespace URI and the local name. |
CCustomizable |
getOwner()
Gets the model component that carries this customization.
|
int |
hashCode() |
static CCustomizations |
merge(CCustomizations lhs,
CCustomizations rhs)
Merges two
CCustomizations objects into one. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAllparallelStream, streampublic static final CCustomizations EMPTY
CCustomizations.public CCustomizations()
public CCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations)
public CCustomizable getOwner()
public CPluginCustomization find(String nsUri)
CPluginCustomization that belongs to the given namespace URI.public CPluginCustomization find(String nsUri, String localName)
CPluginCustomization that belongs to the given namespace URI and the local name.public static CCustomizations merge(CCustomizations lhs, CCustomizations rhs)
CCustomizations objects into one.public boolean equals(Object o)
equals in interface Collection<CPluginCustomization>equals in interface List<CPluginCustomization>equals in class AbstractList<CPluginCustomization>public int hashCode()
hashCode in interface Collection<CPluginCustomization>hashCode in interface List<CPluginCustomization>hashCode in class AbstractList<CPluginCustomization>Copyright © 2017 JBoss by Red Hat. All rights reserved.