Package com.helger.smpclient.extension
Class SMPExtension
java.lang.Object
com.helger.smpclient.extension.SMPExtension
This class contains a generic extension that works for Peppol SMP, OASIS BDXR
SMP v1 and OASIS BDXR SMP v2.
- Since:
- 8.7.3
- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAny()com.helger.xsds.bdxr.smp2.ec.SMPExtensionTypecom.helger.xsds.bdxr.smp1.ExtensionTypecom.helger.json.IJsonObjectcom.helger.xsds.peppol.smp1.ExtensionTypeinthashCode()static SMPExtensionofBDXR1(com.helger.xsds.bdxr.smp1.ExtensionType aExt) static SMPExtensionofBDXR2(com.helger.xsds.bdxr.smp2.ec.SMPExtensionType aExt) static SMPExtensionofJson(com.helger.json.IJsonObject aObject) static SMPExtensionSets the value of the any property.setExtensionAgencyID(String value) Sets the value of the extensionAgencyID property.setExtensionAgencyName(String value) Sets the value of the extensionAgencyName property.setExtensionAgencyURI(String value) Sets the value of the extensionAgencyURI property.setExtensionID(String value) Sets the value of the extensionID property.setExtensionName(String value) Sets the value of the extensionName property.setExtensionReason(String value) Sets the value of the extensionReason property.setExtensionReasonCode(String value) Sets the value of the extensionReasonCode property.setExtensionURI(String value) Sets the value of the extensionURI property.setExtensionVersionID(String value) Sets the value of the extensionVersionID property.toString()
-
Field Details
-
JSON_ID
- See Also:
-
JSON_NAME
- See Also:
-
JSON_AGENCY_ID
- See Also:
-
JSON_AGENCY_NAME
- See Also:
-
JSON_AGENCY_URI
- See Also:
-
JSON_VERSION_ID
- See Also:
-
JSON_URI
- See Also:
-
JSON_REASON_CODE
- See Also:
-
JSON_REASON
- See Also:
-
JSON_ANY
- See Also:
-
XWS
public static final com.helger.xml.serialize.write.IXMLWriterSettings XWS
-
-
Constructor Details
-
SMPExtension
public SMPExtension()
-
-
Method Details
-
getExtensionID
- Returns:
- the value of the extensionID property. May be
null.
-
setExtensionID
Sets the value of the extensionID property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionName
- Returns:
- the value of the extensionName property.
-
setExtensionName
Sets the value of the extensionName property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionAgencyID
- Returns:
- the value of the extensionAgencyID property.
-
setExtensionAgencyID
Sets the value of the extensionAgencyID property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionAgencyName
- Returns:
- the value of the extensionAgencyName property.
-
setExtensionAgencyName
Sets the value of the extensionAgencyName property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionAgencyURI
- Returns:
- the value of the extensionAgencyURI property.
-
setExtensionAgencyURI
Sets the value of the extensionAgencyURI property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionVersionID
- Returns:
- the value of the extensionVersionID property.
-
setExtensionVersionID
Sets the value of the extensionVersionID property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionURI
- Returns:
- the value of the extensionURI property.
-
setExtensionURI
Sets the value of the extensionURI property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionReasonCode
- Returns:
- the value of the extensionReasonCode property.
-
setExtensionReasonCode
Sets the value of the extensionReasonCode property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getExtensionReason
- Returns:
- the value of the extensionReason property.
-
setExtensionReason
Sets the value of the extensionReason property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getAny
- Returns:
- the value of the any property.
-
setAny
Sets the value of the any property.- Parameters:
value- May benull.- Returns:
- this for chaining
-
getAsJsonObject
- Returns:
- A JSON representation of the extension object or
nullif no property is set.
-
getAsPeppolExtension
@Nullable @ReturnsMutableCopy public com.helger.xsds.peppol.smp1.ExtensionType getAsPeppolExtension() -
getAsBDXRExtension
-
getAsBDXR2Extension
-
equals
-
hashCode
public int hashCode() -
toString
-
ofJson
-
ofXML
-
ofBDXR1
@Nullable public static SMPExtension ofBDXR1(@Nullable com.helger.xsds.bdxr.smp1.ExtensionType aExt) -
ofBDXR2
@Nullable public static SMPExtension ofBDXR2(@Nullable com.helger.xsds.bdxr.smp2.ec.SMPExtensionType aExt)
-