-2

I have a large XML file that I extract information from.

I am extracting the information using a list of classes with a main method of the type ParsedValue[] GetValue(BigXmlFile).

This is a bit like a list of commands or strategies. Does this have a name?

  • XML deserialization? – Snoop Mar 10 '16 at 12:16
  • "This is a bit like a list of commands or strategies. Does this have a name?" - Maybe the command pattern or strategy pattern? – Ben Cottrell Mar 10 '16 at 12:29
  • 1
    It's a list of data extractors, a command does not have a return value, and a strategy is supposed to replace another strategy as a singular thing. This is why it is not a command or a strategy. – Ziv Mar 10 '16 at 12:32
  • 1
    Recommended reading – Robbie Dee Mar 10 '16 at 12:33
  • @RobbieDee, that was an interesting read. I think this question falls under the "what is this thing" and not "how to name this thing". The question here being expanded to "is this a thing? and if so what is this thing's name?". – Ziv Mar 10 '16 at 12:37
0

As some others have pointed out, the main method GetValue(BigXmlFile) is the only thing being asked about here. XML de-serialization is what is being done here in order to obtain the data from an external configuration file.

Therefore, I would say that this is not a pattern but a process. The process being used here is called de-serialization.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.