Class Attachment
java.lang.Object
de.rpgframework.character.Attachment
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAttachment(CharacterHandle parent, UUID uuid, Attachment.Type type, Attachment.Format format) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()getID()getType()voidsetData(byte[] data) Change the data within this attachment.voidsetFilename(String filename) voidsetFormat(Attachment.Format format) voidsetLastModified(Date date) voidsetLocalFile(Path localFile) voidsetParent(CharacterHandle parent) voidsetType(Attachment.Type type) voidsetUserData(Object parsed) This may be used to store data of your liking - e.g. aRuleSpecificCharacterObjectfor the parsed data of a type=CHARACTER, format=RULESPECIFIC attachment.toString()
-
Constructor Details
-
Attachment
public Attachment(CharacterHandle parent, UUID uuid, Attachment.Type type, Attachment.Format format)
-
-
Method Details
-
toString
-
getID
-
setID
-
getType
-
setType
-
getFormat
-
setFormat
-
getData
public byte[] getData() -
setData
public void setData(byte[] data) Change the data within this attachment. Remember to callCharacterProvider.modifyAttachment(CharacterHandle, Attachment)to save the new data to the storage.- Parameters:
data-- See Also:
-
getLastModified
-
setLastModified
-
getFilename
-
setFilename
-
getParsed
- Returns:
- the parsed
-
setUserData
This may be used to store data of your liking - e.g. aRuleSpecificCharacterObjectfor the parsed data of a type=CHARACTER, format=RULESPECIFIC attachment.- Parameters:
parsed- Some user data
-
getParent
-
setParent
-
getLocalFile
- Returns:
- the localFile
-
setLocalFile
- Parameters:
localFile- the localFile to set
-