BrightSide Workbench Full Report + Source Code
org.turro.attach.search.AttachmentNode Class Reference

Public Member Functions

 AttachmentNode (Long id, long size, Date modification, String extension)
 
Long getId ()
 
String getBytes ()
 
String getModification ()
 
String getIcon ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file AttachmentNode.java.

Constructor & Destructor Documentation

◆ AttachmentNode()

org.turro.attach.search.AttachmentNode.AttachmentNode ( Long  id,
long  size,
Date  modification,
String  extension 
)

Definition at line 37 of file AttachmentNode.java.

37  {
38  this.id = id;
39  if(id == null) {
40  this.bytes = null;
41  this.modification = null;
42  this.icon = FontAwesome.getMimeIcon("folder");
43  } else {
44  this.bytes = new BytesFormatter(size).toString();
45  this.modification = DateFormats.format(modification, DateFormat.SHORT, I_.api().used());
46  this.icon = FontAwesome.getMimeIcon(extension);
47  }
48  }
Here is the call graph for this function:

Member Function Documentation

◆ getBytes()

String org.turro.attach.search.AttachmentNode.getBytes ( )

Definition at line 54 of file AttachmentNode.java.

54  {
55  return bytes;
56  }

◆ getIcon()

String org.turro.attach.search.AttachmentNode.getIcon ( )

Definition at line 62 of file AttachmentNode.java.

62  {
63  return icon;
64  }

◆ getId()

Long org.turro.attach.search.AttachmentNode.getId ( )

Definition at line 50 of file AttachmentNode.java.

50  {
51  return id;
52  }

◆ getModification()

String org.turro.attach.search.AttachmentNode.getModification ( )

Definition at line 58 of file AttachmentNode.java.

58  {
59  return modification;
60  }

The documentation for this class was generated from the following file: