org.apache.maven.scm

Class ChangeSet

public class ChangeSet extends Object

Version: $Id: ChangeSet.java 386359 2006-03-16 15:48:39Z evenisse $

Author: Emmanuel Venisse

Field Summary
static StringAMPERSAND_ENTITY
Escaped & entity
static StringAPOSTROPHE_ENTITY
Escaped ' entity
static StringGREATER_THAN_ENTITY
Escaped > entity
static StringLESS_THAN_ENTITY
Escaped < entity
static StringQUOTE_ENTITY
Escaped " entity
Constructor Summary
ChangeSet(String strDate, String userDatePattern, String comment, String author, List files)
ChangeSet(Date date, String comment, String author, List files)
ChangeSet()
Constructor used when attributes aren't available until later
Method Summary
voidaddFile(ChangeFile file)
booleancontainsFilename(String filename, ScmProviderRepository repository)
booleanequals(Object obj)
static StringescapeValue(Object value)

Escape the toString of the given object.

StringgetAuthor()
Getter for property author.
StringgetComment()
Getter for property comment.
DategetDate()
Getter for property date.
StringgetDateFormatted()
ListgetFiles()
Getter for ChangeFile list.
StringgetTimeFormatted()
voidsetAuthor(String author)
Setter for property author.
voidsetComment(String comment)
Setter for property comment.
voidsetDate(Date date)
Setter for property date.
voidsetDate(String date)
Setter for property date that takes a string and parses it
voidsetDate(String date, String userDatePattern)
Setter for property date that takes a string and parses it
voidsetFiles(List files)
Setter for ChangeFile list.
StringtoString()
StringtoXML()
Provide the changelog entry as an XML snippet.

Field Detail

AMPERSAND_ENTITY

public static final String AMPERSAND_ENTITY
Escaped & entity

APOSTROPHE_ENTITY

public static final String APOSTROPHE_ENTITY
Escaped ' entity

GREATER_THAN_ENTITY

public static final String GREATER_THAN_ENTITY
Escaped > entity

LESS_THAN_ENTITY

public static final String LESS_THAN_ENTITY
Escaped < entity

QUOTE_ENTITY

public static final String QUOTE_ENTITY
Escaped " entity

Constructor Detail

ChangeSet

public ChangeSet(String strDate, String userDatePattern, String comment, String author, List files)

ChangeSet

public ChangeSet(Date date, String comment, String author, List files)

ChangeSet

public ChangeSet()
Constructor used when attributes aren't available until later

Method Detail

addFile

public void addFile(ChangeFile file)

containsFilename

public boolean containsFilename(String filename, ScmProviderRepository repository)

equals

public boolean equals(Object obj)

See Also: java.lang.Object#equals(java.lang.Object)

escapeValue

public static String escapeValue(Object value)

Escape the toString of the given object. For use in an attribute value.

swiped from jakarta-commons/betwixt -- XMLUtils.java

Parameters: value escape value.toString()

Returns: text with characters restricted (for use in attributes) escaped

getAuthor

public String getAuthor()
Getter for property author.

Returns: Value of property author.

getComment

public String getComment()
Getter for property comment.

Returns: Value of property comment.

getDate

public Date getDate()
Getter for property date.

Returns: Value of property date.

getDateFormatted

public String getDateFormatted()

Returns: date in yyyy-mm-dd format

getFiles

public List getFiles()
Getter for ChangeFile list.

Returns: List of ChangeFile.

getTimeFormatted

public String getTimeFormatted()

Returns: time in HH:mm:ss format

setAuthor

public void setAuthor(String author)
Setter for property author.

Parameters: author New value of property author.

setComment

public void setComment(String comment)
Setter for property comment.

Parameters: comment New value of property comment.

setDate

public void setDate(Date date)
Setter for property date.

Parameters: date New value of property date.

setDate

public void setDate(String date)
Setter for property date that takes a string and parses it

Parameters: date - a string in yyyy/MM/dd HH:mm:ss format

setDate

public void setDate(String date, String userDatePattern)
Setter for property date that takes a string and parses it

Parameters: date - a string in yyyy/MM/dd HH:mm:ss format userDatePattern - pattern of date

setFiles

public void setFiles(List files)
Setter for ChangeFile list.

Parameters: files List of ChangeFiles.

toString

public String toString()

Returns: Returns string representation of the changeset

toXML

public String toXML()
Provide the changelog entry as an XML snippet.

Returns: a changelog-entry in xml format

UNKNOWN: make sure comment doesn't contain CDATA tags - MAVEN114

Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.