public abstract class Customization
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
abstract Customization |
clone(java.util.Set<Ref> filter)
Returns a copy of this customization and optionally modifies its target references so that the customization only applies to a reference if it is subsumed by a reference in the filter.
|
static java.util.List<Customization> |
fromXML(CustomizationsDocument customizationsDocument)
Deprecated.
use
Customization.fromXML(InputStream, SchemaTypeLoader) instead |
static java.util.List<Customization> |
fromXML(java.io.InputStream is, SchemaTypeLoader customTypeLoader)
Parses given input stream that contains the serialized xml represention and returns list of customizations.
|
static Customization |
fromXML(XmlObject xml)
Deprecated.
use
Customization.fromXML(InputStream, SchemaTypeLoader) instead |
java.lang.String |
getDescription()
Returns the user given description for this customization
|
abstract java.util.Set<Ref> |
getTargets()
Returns the references to resources, folders or projects which the customizations will be applied to.
|
abstract CustomizationType |
toXML()
Returns an xml representation for this customization
|
static CustomizationsDocument |
toXML(java.util.List<Customization> customizations)
Converts the give list of customization into an xml form.
|
static void |
toXML(java.util.List<Customization> customizations, java.io.OutputStream os)
Converts the give list of customization into an xml form and serializes to the given stream.
|
public static final long serialVersionUID
public java.lang.String getDescription()
public abstract java.util.Set<Ref> getTargets()
public abstract Customization clone(java.util.Set<Ref> filter)
filter - if filter is null no narrowing is performed, and the customization is cloned as-is.
public abstract CustomizationType toXML()
throws XmlException
XmlException@Deprecated public static Customization fromXML(XmlObject xml) throws UnknownCustomizationTypeException, CustomizationValidationException
Customization.fromXML(InputStream, SchemaTypeLoader) insteadCustomization.fromXML(InputStream, SchemaTypeLoader).xml - the xml representation of a customizationUnknownCustomizationTypeException - the xml is for an unsupported customization typeCustomizationValidationException - the XML document is invalidpublic static java.util.List<Customization> fromXML(java.io.InputStream is, SchemaTypeLoader customTypeLoader) throws java.io.IOException, XmlException, UnknownCustomizationTypeException, CustomizationValidationException
is - input stream that provides the xml document containing a list of customizationscustomTypeLoader - a schema type loader to use when parsing the input stream (for any custom schema types) (may be null)UnknownCustomizationTypeException - the xml is for an unsupported customization typeCustomizationValidationException - the XML document is invalidjava.io.IOExceptionXmlException@Deprecated public static java.util.List<Customization> fromXML(CustomizationsDocument customizationsDocument) throws UnknownCustomizationTypeException, CustomizationValidationException
Customization.fromXML(InputStream, SchemaTypeLoader) insteadCustomization.fromXML(InputStream, SchemaTypeLoader).customizationsDocument - the xml document containing a list of customizationsUnknownCustomizationTypeException - the xml is for an unsupported customization typeCustomizationValidationException - the XML document is invalidpublic static CustomizationsDocument toXML(java.util.List<Customization> customizations) throws XmlException
customizations - the list of customizationsXmlExceptionpublic static void toXML(java.util.List<Customization> customizations, java.io.OutputStream os) throws java.io.IOException, XmlException
customizations - the list customizationsos - where to serialize the xml formjava.io.IOExceptionXmlException