Package com.sun.tools.xjc.model
Class CCustomizations
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<CPluginCustomization>
,Collection<CPluginCustomization>
,List<CPluginCustomization>
,RandomAccess
,SequencedCollection<CPluginCustomization>
Represents the list of
CPluginCustomization
s attached to a JAXB model component.
When Plugin
s 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 CCustomizations
Convenient 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 TypeMethodDescriptionboolean
Finds the firstCPluginCustomization
that belongs to the given namespace URI.Finds the firstCPluginCustomization
that belongs to the given namespace URI and the local name.getOwner()
Gets the model component that carries this customization.int
hashCode()
static CCustomizations
merge
(CCustomizations lhs, CCustomizations rhs) Merges twoCCustomizations
objects into one.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, forEach, get, getFirst, getLast, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
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 firstCPluginCustomization
that belongs to the given namespace URI.- Returns:
- null if not found
-
find
Finds the firstCPluginCustomization
that belongs to the given namespace URI and the local name.- Returns:
- null if not found
-
merge
Merges twoCCustomizations
objects into one. -
equals
- Specified by:
equals
in interfaceCollection<CPluginCustomization>
- Specified by:
equals
in interfaceList<CPluginCustomization>
- Overrides:
equals
in classArrayList<CPluginCustomization>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<CPluginCustomization>
- Specified by:
hashCode
in interfaceList<CPluginCustomization>
- Overrides:
hashCode
in classArrayList<CPluginCustomization>
-