|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.ius.IncrementalUpdate
Nested Class Summary | |
private static class |
IncrementalUpdate.IncrementalUpdateEntityResolver
Loads the DTD for the appropriate phase for the *.xml file to validate against. |
private static class |
IncrementalUpdate.IncrementalUpdateParserErrorHandler
|
(package private) static class |
IncrementalUpdate.MinTargetVersionComparer
Create a comparator that will enable sorting Incremental Updates based on the minimum version of their target version set. |
Constructor Summary | |
IncrementalUpdate()
Create a new instance with a new UUID, empty name, description, directive list, source and version sets. |
|
IncrementalUpdate(InputSource input_source,
String source_name)
|
Method Summary | |
void |
addExcludingUpdate(UUID update_id)
|
void |
addRequiredUpdate(UUID update_id)
Specify UUIDs for incremental updates that this update depends upon. |
Element |
asBriefDom(Document dom_factory)
Write without directives or version sets. |
Element |
asDom(Document dom_factory)
|
private Element |
asDom(Document dom_factory,
boolean full)
|
Document |
asDomDocument()
|
Document |
asDomDocument(boolean full)
|
boolean |
canRunAgainstSourceVersions(ReleaseId[] source_versions)
Determines if the provided version is in the update's source version set. |
boolean |
canRunAgainstTargetVersions(ReleaseId[] target_versions)
Determines if the provided version is in the update's target version set. |
private List |
directives()
Returns directives, analyzing the DOM first if necessary. |
void |
execute(DirectiveServices directive_services)
|
static String |
getCorrectDtdFile()
Determines the correct DTD file for the current phase |
String |
getDescription()
|
private Document |
getDocumentFrom(InputSource input_source,
String source_name)
|
String |
getName()
|
private static DocumentBuilder |
getNonValidatingParser()
|
List |
getRequiredUpdateUuids()
Collection of UUIDs for incremental updates that this update depends upon. |
private static EntityResolver |
getSaxEntityResolver()
An instance of EntityResolver is created and returned. |
private static ErrorHandler |
getSaxErrorHandler()
An instance of ErrorHandler is created and returned. |
(package private) ReleaseIdSet |
getSourceVersionSet()
|
(package private) ReleaseIdSet |
getTargetVersionSet()
|
UUID |
getUuid()
|
private static UuidGenerator |
getUuidGenerator()
|
List |
getUuidsThatExclude()
Collection of UUIDs for incremental updates that this update is mutually exclusive with. |
private static DocumentBuilder |
getValidatingParser()
|
boolean |
isOptional()
|
private static Document |
readNonValidatedFrom(InputSource input_source,
String source_name)
|
void |
removeExcludingUpdate(UUID update_id)
Exclude the incremental update that is in the ExcludeVersions tags. |
void |
removeRequiredUpdate(UUID update_id)
Removes the IU from the arraylist so it is not applied |
private static Document |
reReadValidated(Document document,
String source_name)
|
void |
setDescription(String description)
|
void |
setIsOptional(boolean is_optional)
|
void |
setName(String name)
|
String |
toString()
|
private String |
trimSpacesAroundLineBreaks(String description_parsing)
Removes spaces for description of the Incremental Update. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ROOT_ELEMENT_NAME
public static final String UUID_ATTRIBUTE_NAME
public static final String IS_OPTIONAL_ATTRIBUTE_NAME
public static final String NAME_ELEMENT_NAME
public static final String DESCRIPTION_ELEMENT_NAME
public static final String REQUIRED_UPDATE_ELEMENT_NAME
public static final String EXCLUDING_UPDATE_ELEMENT_NAME
public static final String SOURCE_VERSION_SET_ELEMENT_NAME
public static final String TARGET_VERSION_SET_ELEMENT_NAME
public static final String DIRECTIVES_ELEMENT_NAME
private static final Object classLock__
private static UuidGenerator uuidGenerator__
private static DocumentBuilder nonValidatingParser__
private static DocumentBuilder validatingParser__
private UUID uuid_
private String name_
private String description_
private boolean isOptional_
private ReleaseIdSet sourceVersionSet_
private ReleaseIdSet targetVersionSet_
private ArrayList requiredUpdates_
private ArrayList excludingUpdates_
private ArrayList directives_
private Element directivesElement_
private static final String DTD_FOR_MIGRATORS_REQ_METHOD_SERVER
private static final String DTD_FOR_STANDALONE_MIGRATORS
private static final String PREFIX_PATH
private static final String DTD_EXTENSION
Constructor Detail |
public IncrementalUpdate() throws UuidGeneratorCreationException
public IncrementalUpdate(InputSource input_source, String source_name) throws UpdateIOException
input_source
- source_name
- IncrementalUpdate file nameMethod Detail |
private final List directives() throws UpdateIOException
UpdateIOException
private String trimSpacesAroundLineBreaks(String description_parsing)
public Document asDomDocument() throws UpdateIOException
UpdateIOException
public Document asDomDocument(boolean full) throws UpdateIOException
UpdateIOException
private Element asDom(Document dom_factory, boolean full) throws UpdateIOException
UpdateIOException
public Element asDom(Document dom_factory) throws UpdateIOException
UpdateIOException
public Element asBriefDom(Document dom_factory) throws UpdateIOException
UpdateIOException
public void execute(DirectiveServices directive_services) throws UpdateExecutionException
UpdateExecutionException
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public boolean isOptional()
public void setIsOptional(boolean is_optional)
public UUID getUuid()
private static UuidGenerator getUuidGenerator() throws UuidGeneratorCreationException
UuidGeneratorCreationException
public final boolean canRunAgainstSourceVersions(ReleaseId[] source_versions)
public final boolean canRunAgainstTargetVersions(ReleaseId[] target_versions)
public List getRequiredUpdateUuids()
public List getUuidsThatExclude()
public void addRequiredUpdate(UUID update_id)
public void removeRequiredUpdate(UUID update_id)
update_id
- UUIDpublic void addExcludingUpdate(UUID update_id)
public void removeExcludingUpdate(UUID update_id)
update_id
- UUIDpublic String toString()
private Document getDocumentFrom(InputSource input_source, String source_name) throws UpdateIOException
UpdateIOException
private static DocumentBuilder getNonValidatingParser() throws ParserConfigurationException
ParserConfigurationException
private static DocumentBuilder getValidatingParser() throws ParserConfigurationException
ParserConfigurationException
private static Document readNonValidatedFrom(InputSource input_source, String source_name) throws UpdateIOException
UpdateIOException
private static Document reReadValidated(Document document, String source_name) throws UpdateIOException
UpdateIOException
public static String getCorrectDtdFile()
private static ErrorHandler getSaxErrorHandler()
private static EntityResolver getSaxEntityResolver()
ReleaseIdSet getSourceVersionSet()
ReleaseIdSet getTargetVersionSet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |