I have a class called ObjectClass that was auto-generated by JibX from a .xsd file. To prevent class name issues this class has been relegated to its own package, such as
com.CompanyName.ProductName.SDK.Device.GetCommandsResponse.ObjectClass
This class binds and unbinds as intended.
I would like to create an empty class that extends the above class, and I am wondering will the new class bind and unbind correctly using the original ObjectClass binding? Or must I attempt to make a unique binding for this new extension?
The new class looks similar to this
public class deviceGetCommandsResponse extends
com.CompanyName.ProductName.SDK.Device.GetCommandsResponse.ObjectClass
{
/// This is empty
}
This intention of this is to make casting these objects easier/less hassle for third party developers by providing unique names.
So instead of
(com.CompanyName.ProductName.SDK.Device.GetCommandsResponse.ObjectClass) SomeReturnFromAMethod
they can use
(deviceGetCommandsResponse) SomeReturnFromAMethod;
and have all the same functionality.
In broader terms how would I go about making an Adapter Pattern for JibX generated classes?