-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#162, API changes/additions required to make JSON encoding a possibility
- Loading branch information
Showing
4 changed files
with
80 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,36 +16,37 @@ | |
|
||
/** | ||
* Super interface for all complex type serializable objects | ||
* | ||
* @author Toni Kalajainen ([email protected]) | ||
*/ | ||
public interface Structure extends IEncodeable, Cloneable { | ||
|
||
/** | ||
* <p>getTypeId.</p> | ||
* | ||
* @return a {@link org.opcfoundation.ua.builtintypes.ExpandedNodeId} object. | ||
* The NodeId for the actual DataType node defining this Structure type. Should never be null. | ||
* Shall always contain the NamespaceUri within the {@link ExpandedNodeId}. | ||
*/ | ||
ExpandedNodeId getTypeId(); | ||
|
||
/** | ||
* <p>getXmlEncodeId.</p> | ||
* | ||
* @return a {@link org.opcfoundation.ua.builtintypes.ExpandedNodeId} object. | ||
* The NodeId for the "Default XML" encodings node of this Structure type. Can be null if not supported. | ||
* Shall always contain the NamespaceUri within the {@link ExpandedNodeId}, if not null. | ||
*/ | ||
ExpandedNodeId getXmlEncodeId(); | ||
|
||
/** | ||
* <p>getBinaryEncodeId.</p> | ||
* | ||
* @return a {@link org.opcfoundation.ua.builtintypes.ExpandedNodeId} object. | ||
* The NodeId for the "Default Binary" encodings node of this Structure type. Should never be null as the encoding is mandatory. | ||
* Shall always contain the NamespaceUri within the {@link ExpandedNodeId}. | ||
*/ | ||
ExpandedNodeId getBinaryEncodeId(); | ||
|
||
/** | ||
* The NodeId for the "Default JSON" encodings node of this Structure type. Can be null if not supported. | ||
* Shall always contain the NamespaceUri within the {@link ExpandedNodeId}, if not null. | ||
*/ | ||
ExpandedNodeId getJsonEncodeId(); | ||
|
||
/** | ||
* As every Structure is Cloneable, this method provides convinience method for | ||
* calling .clone for an unknown Structure. Classes implementing Structure should change the signature | ||
* to return the type of the implementing class. | ||
* | ||
* @return a deep clone of this Structure | ||
* to return the type of the implementing class. Returns a deep clone of this Structure object. | ||
*/ | ||
Structure clone(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,6 @@ | |
*/ | ||
public enum EncodeType { | ||
Binary, | ||
Xml | ||
Xml, | ||
Json; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters