com.projectdarkstar.tools.dtc.data
Class PkgLibraryTagDTO
java.lang.Object
com.projectdarkstar.tools.dtc.data.AbstractDTO
com.projectdarkstar.tools.dtc.data.PkgLibraryTagDTO
- All Implemented Interfaces:
- Serializable
public class PkgLibraryTagDTO
- extends AbstractDTO
Represents a tag entity used to categorize PkgLibraryDTO
objects.
- See Also:
- Serialized Form
PkgLibraryTagDTO
public PkgLibraryTagDTO(Long id,
String tag)
getId
public Long getId()
- Returns the id of the entity in persistent storage
- Specified by:
getId in class AbstractDTO
- Returns:
- id of the entity
setId
public void setId(Long id)
getTag
public String getTag()
setTag
protected void setTag(String tag)
updateTag
public void updateTag(String tag)
throws DTCInvalidDataException
- Throws:
DTCInvalidDataException
getLibraries
public List<PkgLibraryDTO> getLibraries()
- Returns the list of
PkgLibraryDTO objects that are tagged
with this tag.
- Returns:
- libraries tagged with this tag.
setLibraries
protected void setLibraries(List<PkgLibraryDTO> libraries)
updateLibraries
public void updateLibraries(List<PkgLibraryDTO> libraries)
throws DTCInvalidDataException
- Throws:
DTCInvalidDataException
validate
public void validate()
throws DTCInvalidDataException
- Description copied from class:
AbstractDTO
- Validates that each attribute and pending updated attribute (from the
updatedAttributes Map) has a valid value in the context of the
particular object.
- Specified by:
validate in class AbstractDTO
- Throws:
DTCInvalidDataException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013. All Rights Reserved.