com.sun.tools.xjc.model

Class CCustomizations

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 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.

Field Summary
static CCustomizationsEMPTY
Convenient singleton instance that represents an empty CCustomizations.
CCustomizationsnext
All CCustomizations used by a Model form a single linked list so that we can look for unacknowledged customizations later.
Constructor Summary
CCustomizations()
CCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations)
Method Summary
booleanequals(Object o)
CPluginCustomizationfind(String nsUri)
Finds the first CPluginCustomization that belongs to the given namespace URI.
CPluginCustomizationfind(String nsUri, String localName)
Finds the first CPluginCustomization that 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 two CCustomizations objects into one.
voidsetParent(Model model, CCustomizable owner)

Field Detail

EMPTY

public static final CCustomizations EMPTY
Convenient singleton instance that represents an empty CCustomizations.

CCustomizations next
All CCustomizations used by a Model form a single linked list so that we can look for unacknowledged customizations later.

See Also: markAsAcknowledged setParent

Constructor Detail

CCustomizations

public CCustomizations()

CCustomizations

public CCustomizations(Collection<? extends CPluginCustomization> cPluginCustomizations)

Method Detail

equals

public boolean equals(Object o)

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

getOwner

public CCustomizable getOwner()
Gets the model component that carries this customization.

Returns: never null.

hashCode

public int hashCode()

merge

public static CCustomizations merge(CCustomizations lhs, CCustomizations rhs)
Merges two CCustomizations objects into one.

setParent

void setParent(Model model, CCustomizable owner)