• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the design pattern that describes...  RSS feed

 
red fraggle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone please tell me what the applicable design pattern(s) are for a basic class model of a file?

Example:



Thanks.
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

I'm not convinced any design patterns are needed here (unless there are some more specific requirements) - it's just a straightforward composition.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/advanced-java/57618-whats-design-pattern-s-describes.html
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only design pattern I can think of is abstract factory, if you want to use a factory to create File / Row objects. Each vendor would have its own factory implementation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!