Package com.sun.tools.xjc.model
Class CCustomizations
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<CPluginCustomization>,Collection<CPluginCustomization>,List<CPluginCustomization>,RandomAccess
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CCustomizationsConvenient singleton instance that represents an emptyCCustomizations.Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations) -
Method Summary
Modifier and TypeMethodDescriptionbooleanFinds the firstCPluginCustomizationthat belongs to the given namespace URI.Finds the firstCPluginCustomizationthat belongs to the given namespace URI and the local name.getOwner()Gets the model component that carries this customization.inthashCode()static CCustomizationsmerge(CCustomizations lhs, CCustomizations rhs) Merges twoCCustomizationsobjects into one.Methods inherited from class java.util.ArrayList
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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Field Details
-
EMPTY
Convenient singleton instance that represents an emptyCCustomizations.
-
-
Constructor Details
-
CCustomizations
public CCustomizations() -
CCustomizations
-
-
Method Details
-
getOwner
Gets the model component that carries this customization.- Returns:
- never null.
-
find
Finds the firstCPluginCustomizationthat belongs to the given namespace URI.- Returns:
- null if not found
-
find
Finds the firstCPluginCustomizationthat belongs to the given namespace URI and the local name.- Returns:
- null if not found
-
merge
Merges twoCCustomizationsobjects into one. -
equals
- Specified by:
equalsin interfaceCollection<CPluginCustomization>- Specified by:
equalsin interfaceList<CPluginCustomization>- Overrides:
equalsin classArrayList<CPluginCustomization>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<CPluginCustomization>- Specified by:
hashCodein interfaceList<CPluginCustomization>- Overrides:
hashCodein classArrayList<CPluginCustomization>
-