com.sun.tools.xjc.model
Class CCustomizations
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<CPluginCustomization>
com.sun.tools.xjc.model.CCustomizations
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<CPluginCustomization>, Collection<CPluginCustomization>, List<CPluginCustomization>, RandomAccess
public final class CCustomizations
- extends ArrayList<CPluginCustomization>
Represents the list of 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.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
EMPTY
public static final CCustomizations EMPTY
- Convenient singleton instance that represents an empty
CCustomizations.
CCustomizations
public CCustomizations()
CCustomizations
public CCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations)
getOwner
public CCustomizable getOwner()
- Gets the model component that carries this customization.
- Returns:
- never null.
find
public CPluginCustomization find(String nsUri)
- Finds the first
CPluginCustomization that belongs to the given namespace URI.
- Returns:
- null if not found
find
public CPluginCustomization find(String nsUri,
String localName)
- Finds the first
CPluginCustomization that belongs to the given namespace URI and the local name.
- Returns:
- null if not found
merge
public static CCustomizations merge(CCustomizations lhs,
CCustomizations rhs)
- Merges two
CCustomizations objects into one.
equals
public boolean equals(Object o)
- Specified by:
equals in interface Collection<CPluginCustomization>- Specified by:
equals in interface List<CPluginCustomization>- Overrides:
equals in class AbstractList<CPluginCustomization>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<CPluginCustomization>- Specified by:
hashCode in interface List<CPluginCustomization>- Overrides:
hashCode in class AbstractList<CPluginCustomization>
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.