Package 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 ofCPluginCustomizations attached to a JAXB model component.When
Plugins register the customization namespace URIs throughPlugin.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 throughCPluginCustomization. APlugincan then access this information to change its behavior.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CCustomizationsEMPTYConvenient singleton instance that represents an emptyCCustomizations.-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description CCustomizations()CCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CPluginCustomizationfind(String nsUri)Finds the firstCPluginCustomizationthat belongs to the given namespace URI.CPluginCustomizationfind(String nsUri, String localName)Finds the firstCPluginCustomizationthat belongs to the given namespace URI and the local name.CCustomizablegetOwner()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, 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
-
-
-
-
Field Detail
-
EMPTY
public static final CCustomizations EMPTY
Convenient singleton instance that represents an emptyCCustomizations.
-
-
Constructor Detail
-
CCustomizations
public CCustomizations()
-
CCustomizations
public CCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations)
-
-
Method Detail
-
getOwner
public CCustomizable getOwner()
Gets the model component that carries this customization.- Returns:
- never null.
-
find
public CPluginCustomization find(String nsUri)
Finds the firstCPluginCustomizationthat belongs to the given namespace URI.- Returns:
- null if not found
-
find
public CPluginCustomization find(String nsUri, String localName)
Finds the firstCPluginCustomizationthat 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 twoCCustomizationsobjects into one.
-
equals
public boolean equals(Object o)
- 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>
-
-