Does Apache Commons JXPath searching marshals an object during searching by XPath?

StackOverflow https://stackoverflow.com/questions/13685462

  •  04-12-2021
  •  | 
  •  

Domanda

I am new to the expressions language, and I want to learn more about org.apache.commons.jxpath utilities. But I am wondering about the implementation of the JXPath utilities. Is the object first marshaled, upon which XPath searching will be applied, or does the object keep its original state i.e. without marshaling it?

Kindly provide some good reference code snippet if possible.

Thanks.

È stato utile?

Soluzione

I would perhaps check out the source code. I don't quite understand what you mean when you refer to 'marshalling'. The object won't be serialised, but I would instead expect some simple reflection to discover the object's properties.

The source for ValueUtils.java appears to have a lot of reflection code for the object's properties.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top