- started to implement client side get file directory service

pull/4/head
Michael Zillgith 8 years ago
parent c9d8278029
commit bdb5db7aa0

@ -29,7 +29,11 @@ ConfirmedServiceRequest ::= CHOICE {
getVariableAccessAttributes [6] GetVariableAccessAttributes-Request, getVariableAccessAttributes [6] GetVariableAccessAttributes-Request,
defineNamedVariableList [11] IMPLICIT DefineNamedVariableList-Request, defineNamedVariableList [11] IMPLICIT DefineNamedVariableList-Request,
getNamedVariableListAttributes [12] GetNamedVariableListAttributes-Request, getNamedVariableListAttributes [12] GetNamedVariableListAttributes-Request,
deleteNamedVariableList [13] IMPLICIT DeleteNamedVariableList-Request deleteNamedVariableList [13] IMPLICIT DeleteNamedVariableList-Request,
-- fileOpen [72] IMPLICIT FileOpen-Request,
-- fileRead [73] IMPLICIT FileRead-Request,
-- fileClose [74] IMPLICIT FileClose-Request,
fileDirectory [77] IMPLICIT FileDirectory-Request
} }
Unconfirmed-PDU ::= SEQUENCE { Unconfirmed-PDU ::= SEQUENCE {
@ -52,7 +56,11 @@ ConfirmedServiceResponse ::= CHOICE {
getVariableAccessAttributes [6] IMPLICIT GetVariableAccessAttributes-Response, getVariableAccessAttributes [6] IMPLICIT GetVariableAccessAttributes-Response,
defineNamedVariableList [11] IMPLICIT DefineNamedVariableList-Response, defineNamedVariableList [11] IMPLICIT DefineNamedVariableList-Response,
getNamedVariableListAttributes [12] IMPLICIT GetNamedVariableListAttributes-Response, getNamedVariableListAttributes [12] IMPLICIT GetNamedVariableListAttributes-Response,
deleteNamedVariableList [13] IMPLICIT DeleteNamedVariableList-Response deleteNamedVariableList [13] IMPLICIT DeleteNamedVariableList-Response,
-- fileOpen [72] IMPLICIT FileOpen-Response,
-- fileRead [73] IMPLICIT FileRead-Response,
-- fileClose [74] IMPLICIT FileClose-Response,
fileDirectory [77] IMPLICIT FileDirectory-Response
} }
@ -581,6 +589,28 @@ DeleteNamedVariableList-Response ::= SEQUENCE {
numberDeleted [1] IMPLICIT Unsigned32 numberDeleted [1] IMPLICIT Unsigned32
} }
FileDirectory-Request ::= SEQUENCE {
fileSpecification [0] IMPLICIT FileName OPTIONAL,
continueAfter [1] IMPLICIT FileName OPTIONAL
}
FileDirectory-Response ::= SEQUENCE {
listOfDirectoryEntry [0] SEQUENCE OF DirectoryEntry,
moreFollows [1] IMPLICIT BOOLEAN DEFAULT FALSE
}
DirectoryEntry ::= SEQUENCE {
fileName [0] IMPLICIT FileName,
fileAttributes [1] IMPLICIT FileAttributes
}
FileAttributes ::= SEQUENCE {
sizeOfFile [0] IMPLICIT Unsigned32, -- in octets
lastModified [1] IMPLICIT GeneralizedTime OPTIONAL
}
FileName ::= SEQUENCE OF GraphicString
TypeDescription ::= CHOICE { TypeDescription ::= CHOICE {
array [1] IMPLICIT SEQUENCE { array [1] IMPLICIT SEQUENCE {
packed [0] IMPLICIT BOOLEAN DEFAULT FALSE, packed [0] IMPLICIT BOOLEAN DEFAULT FALSE,

@ -1,16 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class AccessResult implements Serializable { public class AccessResult implements Serializable {
@ -111,7 +118,6 @@ public class AccessResult implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -135,3 +141,4 @@ public class AccessResult implements Serializable {
} }
} }

@ -1,20 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class AlternateAccess implements Serializable { public class AlternateAccess implements Serializable {
@ -96,7 +99,6 @@ public class AlternateAccess implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -121,7 +123,7 @@ public class AlternateAccess implements Serializable {
private List<CHOICE> seqOf = null; private List<CHOICE> seqOf = null;
public AlternateAccess() { public AlternateAccess() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<CHOICE>();
} }
public AlternateAccess(byte[] code) { public AlternateAccess(byte[] code) {
@ -130,7 +132,7 @@ public class AlternateAccess implements Serializable {
public List<CHOICE> getCHOICE() { public List<CHOICE> getCHOICE() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<CHOICE>();
} }
return seqOf; return seqOf;
} }
@ -186,8 +188,7 @@ public class AlternateAccess implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -201,7 +202,6 @@ public class AlternateAccess implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -239,3 +239,4 @@ public class AlternateAccess implements Serializable {
} }
} }

@ -1,26 +1,29 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerNull;
import org.openmuc.jasn1.ber.types.string.BerVisibleString;
public class AlternateAccessSelection implements Serializable { public class AlternateAccessSelection implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public byte[] code = null; public byte[] code = null;
public static class SelectAlternateAccess implements Serializable { public static class SelectAlternateAccess implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -30,7 +33,6 @@ public class AlternateAccessSelection implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public byte[] code = null; public byte[] code = null;
public static class Component implements Serializable { public static class Component implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -85,7 +87,7 @@ public class AlternateAccessSelection implements Serializable {
codeLength += berTag.decode(is); codeLength += berTag.decode(is);
} }
if (berTag.equals(BerVisibleString.tag)) { if (berTag.equals(BasicIdentifier.tag)) {
basic = new BasicIdentifier(); basic = new BasicIdentifier();
codeLength += basic.decode(is, false); codeLength += basic.decode(is, false);
return codeLength; return codeLength;
@ -104,7 +106,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -229,8 +230,8 @@ public class AlternateAccessSelection implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -240,7 +241,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -426,7 +426,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -553,8 +552,8 @@ public class AlternateAccessSelection implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -564,7 +563,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -612,7 +610,6 @@ public class AlternateAccessSelection implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public byte[] code = null; public byte[] code = null;
public static class Component implements Serializable { public static class Component implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -667,7 +664,7 @@ public class AlternateAccessSelection implements Serializable {
codeLength += berTag.decode(is); codeLength += berTag.decode(is);
} }
if (berTag.equals(BerVisibleString.tag)) { if (berTag.equals(BasicIdentifier.tag)) {
basic = new BasicIdentifier(); basic = new BasicIdentifier();
codeLength += basic.decode(is, false); codeLength += basic.decode(is, false);
return codeLength; return codeLength;
@ -686,7 +683,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -811,8 +807,8 @@ public class AlternateAccessSelection implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -822,7 +818,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -1008,7 +1003,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -1138,7 +1132,6 @@ public class AlternateAccessSelection implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -1163,3 +1156,4 @@ public class AlternateAccessSelection implements Serializable {
} }
} }

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.string.BerVisibleString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class BasicIdentifier extends BerVisibleString { public class BasicIdentifier extends BerVisibleString {

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.BerNull; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class ConcludeRequestPDU extends BerNull { public class ConcludeRequestPDU extends BerNull {

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class ConfirmedErrorPDU implements Serializable { public class ConfirmedErrorPDU implements Serializable {
@ -141,8 +147,8 @@ public class ConfirmedErrorPDU implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -152,7 +158,6 @@ public class ConfirmedErrorPDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -201,3 +206,4 @@ public class ConfirmedErrorPDU implements Serializable {
} }
} }

@ -1,18 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerInteger;
public class ConfirmedRequestPDU implements Serializable { public class ConfirmedRequestPDU implements Serializable {
@ -98,7 +103,7 @@ public class ConfirmedRequestPDU implements Serializable {
codeLength += totalLength; codeLength += totalLength;
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
if (berTag.equals(BerInteger.tag)) { if (berTag.equals(Unsigned32.tag)) {
invokeID = new Unsigned32(); invokeID = new Unsigned32();
subCodeLength += invokeID.decode(is, false); subCodeLength += invokeID.decode(is, false);
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
@ -112,8 +117,8 @@ public class ConfirmedRequestPDU implements Serializable {
if (subCodeLength == totalLength) { if (subCodeLength == totalLength) {
return codeLength; return codeLength;
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -123,7 +128,6 @@ public class ConfirmedRequestPDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -164,3 +168,4 @@ public class ConfirmedRequestPDU implements Serializable {
} }
} }

@ -1,18 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerInteger;
public class ConfirmedResponsePDU implements Serializable { public class ConfirmedResponsePDU implements Serializable {
@ -98,7 +103,7 @@ public class ConfirmedResponsePDU implements Serializable {
codeLength += totalLength; codeLength += totalLength;
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
if (berTag.equals(BerInteger.tag)) { if (berTag.equals(Unsigned32.tag)) {
invokeID = new Unsigned32(); invokeID = new Unsigned32();
subCodeLength += invokeID.decode(is, false); subCodeLength += invokeID.decode(is, false);
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
@ -112,8 +117,8 @@ public class ConfirmedResponsePDU implements Serializable {
if (subCodeLength == totalLength) { if (subCodeLength == totalLength) {
return codeLength; return codeLength;
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -123,7 +128,6 @@ public class ConfirmedResponsePDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -164,3 +168,4 @@ public class ConfirmedResponsePDU implements Serializable {
} }
} }

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class ConfirmedServiceRequest implements Serializable { public class ConfirmedServiceRequest implements Serializable {
@ -25,6 +31,7 @@ public class ConfirmedServiceRequest implements Serializable {
private DefineNamedVariableListRequest defineNamedVariableList = null; private DefineNamedVariableListRequest defineNamedVariableList = null;
private GetNamedVariableListAttributesRequest getNamedVariableListAttributes = null; private GetNamedVariableListAttributesRequest getNamedVariableListAttributes = null;
private DeleteNamedVariableListRequest deleteNamedVariableList = null; private DeleteNamedVariableListRequest deleteNamedVariableList = null;
private FileDirectoryRequest fileDirectory = null;
public ConfirmedServiceRequest() { public ConfirmedServiceRequest() {
} }
@ -73,8 +80,7 @@ public class ConfirmedServiceRequest implements Serializable {
return defineNamedVariableList; return defineNamedVariableList;
} }
public void setGetNamedVariableListAttributes( public void setGetNamedVariableListAttributes(GetNamedVariableListAttributesRequest getNamedVariableListAttributes) {
GetNamedVariableListAttributesRequest getNamedVariableListAttributes) {
this.getNamedVariableListAttributes = getNamedVariableListAttributes; this.getNamedVariableListAttributes = getNamedVariableListAttributes;
} }
@ -90,6 +96,14 @@ public class ConfirmedServiceRequest implements Serializable {
return deleteNamedVariableList; return deleteNamedVariableList;
} }
public void setFileDirectory(FileDirectoryRequest fileDirectory) {
this.fileDirectory = fileDirectory;
}
public FileDirectoryRequest getFileDirectory() {
return fileDirectory;
}
public int encode(OutputStream os) throws IOException { public int encode(OutputStream os) throws IOException {
if (code != null) { if (code != null) {
@ -102,6 +116,15 @@ public class ConfirmedServiceRequest implements Serializable {
int codeLength = 0; int codeLength = 0;
int sublength; int sublength;
if (fileDirectory != null) {
codeLength += fileDirectory.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 77
os.write(0x4D);
os.write(0xBF);
codeLength += 2;
return codeLength;
}
if (deleteNamedVariableList != null) { if (deleteNamedVariableList != null) {
codeLength += deleteNamedVariableList.encode(os, false); codeLength += deleteNamedVariableList.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 13 // write tag: CONTEXT_CLASS, CONSTRUCTED, 13
@ -223,6 +246,12 @@ public class ConfirmedServiceRequest implements Serializable {
return codeLength; return codeLength;
} }
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 77)) {
fileDirectory = new FileDirectoryRequest();
codeLength += fileDirectory.decode(is, false);
return codeLength;
}
if (passedTag != null) { if (passedTag != null) {
return 0; return 0;
} }
@ -236,7 +265,6 @@ public class ConfirmedServiceRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -287,7 +315,14 @@ public class ConfirmedServiceRequest implements Serializable {
return; return;
} }
if (fileDirectory != null) {
sb.append("fileDirectory: ");
fileDirectory.appendAsString(sb, indentLevel + 1);
return;
}
sb.append("<none>"); sb.append("<none>");
} }
} }

@ -1,16 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class ConfirmedServiceResponse implements Serializable { public class ConfirmedServiceResponse implements Serializable {
@ -24,6 +31,7 @@ public class ConfirmedServiceResponse implements Serializable {
private DefineNamedVariableListResponse defineNamedVariableList = null; private DefineNamedVariableListResponse defineNamedVariableList = null;
private GetNamedVariableListAttributesResponse getNamedVariableListAttributes = null; private GetNamedVariableListAttributesResponse getNamedVariableListAttributes = null;
private DeleteNamedVariableListResponse deleteNamedVariableList = null; private DeleteNamedVariableListResponse deleteNamedVariableList = null;
private FileDirectoryResponse fileDirectory = null;
public ConfirmedServiceResponse() { public ConfirmedServiceResponse() {
} }
@ -72,8 +80,7 @@ public class ConfirmedServiceResponse implements Serializable {
return defineNamedVariableList; return defineNamedVariableList;
} }
public void setGetNamedVariableListAttributes( public void setGetNamedVariableListAttributes(GetNamedVariableListAttributesResponse getNamedVariableListAttributes) {
GetNamedVariableListAttributesResponse getNamedVariableListAttributes) {
this.getNamedVariableListAttributes = getNamedVariableListAttributes; this.getNamedVariableListAttributes = getNamedVariableListAttributes;
} }
@ -89,6 +96,14 @@ public class ConfirmedServiceResponse implements Serializable {
return deleteNamedVariableList; return deleteNamedVariableList;
} }
public void setFileDirectory(FileDirectoryResponse fileDirectory) {
this.fileDirectory = fileDirectory;
}
public FileDirectoryResponse getFileDirectory() {
return fileDirectory;
}
public int encode(OutputStream os) throws IOException { public int encode(OutputStream os) throws IOException {
if (code != null) { if (code != null) {
@ -99,6 +114,15 @@ public class ConfirmedServiceResponse implements Serializable {
} }
int codeLength = 0; int codeLength = 0;
if (fileDirectory != null) {
codeLength += fileDirectory.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 77
os.write(0x4D);
os.write(0xBF);
codeLength += 2;
return codeLength;
}
if (deleteNamedVariableList != null) { if (deleteNamedVariableList != null) {
codeLength += deleteNamedVariableList.encode(os, false); codeLength += deleteNamedVariableList.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 13 // write tag: CONTEXT_CLASS, CONSTRUCTED, 13
@ -214,6 +238,12 @@ public class ConfirmedServiceResponse implements Serializable {
return codeLength; return codeLength;
} }
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 77)) {
fileDirectory = new FileDirectoryResponse();
codeLength += fileDirectory.decode(is, false);
return codeLength;
}
if (passedTag != null) { if (passedTag != null) {
return 0; return 0;
} }
@ -227,7 +257,6 @@ public class ConfirmedServiceResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -277,7 +306,14 @@ public class ConfirmedServiceResponse implements Serializable {
return; return;
} }
if (fileDirectory != null) {
sb.append("fileDirectory: ");
fileDirectory.appendAsString(sb, indentLevel + 1);
return;
}
sb.append("<none>"); sb.append("<none>");
} }
} }

@ -1,32 +1,29 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerBitString;
import org.openmuc.jasn1.ber.types.BerBoolean;
import org.openmuc.jasn1.ber.types.BerInteger;
import org.openmuc.jasn1.ber.types.BerOctetString;
import org.openmuc.jasn1.ber.types.string.BerVisibleString;
public class Data implements Serializable { public class Data implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public byte[] code = null; public byte[] code = null;
public static class Array implements Serializable { public static class Array implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -36,7 +33,7 @@ public class Data implements Serializable {
private List<Data> seqOf = null; private List<Data> seqOf = null;
public Array() { public Array() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Data>();
} }
public Array(byte[] code) { public Array(byte[] code) {
@ -45,7 +42,7 @@ public class Data implements Serializable {
public List<Data> getData() { public List<Data> getData() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Data>();
} }
return seqOf; return seqOf;
} }
@ -101,8 +98,7 @@ public class Data implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -116,7 +112,6 @@ public class Data implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -164,7 +159,7 @@ public class Data implements Serializable {
private List<Data> seqOf = null; private List<Data> seqOf = null;
public Structure() { public Structure() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Data>();
} }
public Structure(byte[] code) { public Structure(byte[] code) {
@ -173,7 +168,7 @@ public class Data implements Serializable {
public List<Data> getData() { public List<Data> getData() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Data>();
} }
return seqOf; return seqOf;
} }
@ -229,8 +224,7 @@ public class Data implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -244,7 +238,6 @@ public class Data implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -607,7 +600,6 @@ public class Data implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -682,3 +674,4 @@ public class Data implements Serializable {
} }
} }

@ -1,12 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.types.BerInteger;
public class DataAccessError extends BerInteger { public class DataAccessError extends BerInteger {

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class DefineNamedVariableListRequest implements Serializable { public class DefineNamedVariableListRequest implements Serializable {
@ -111,8 +117,8 @@ public class DefineNamedVariableListRequest implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -122,7 +128,6 @@ public class DefineNamedVariableListRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -164,3 +169,4 @@ public class DefineNamedVariableListRequest implements Serializable {
} }
} }

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.BerNull; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class DefineNamedVariableListResponse extends BerNull { public class DefineNamedVariableListResponse extends BerNull {

@ -1,22 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerInteger;
import org.openmuc.jasn1.ber.types.string.BerVisibleString;
public class DeleteNamedVariableListRequest implements Serializable { public class DeleteNamedVariableListRequest implements Serializable {
@ -31,7 +32,7 @@ public class DeleteNamedVariableListRequest implements Serializable {
private List<ObjectName> seqOf = null; private List<ObjectName> seqOf = null;
public ListOfVariableListName() { public ListOfVariableListName() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<ObjectName>();
} }
public ListOfVariableListName(byte[] code) { public ListOfVariableListName(byte[] code) {
@ -40,7 +41,7 @@ public class DeleteNamedVariableListRequest implements Serializable {
public List<ObjectName> getObjectName() { public List<ObjectName> getObjectName() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<ObjectName>();
} }
return seqOf; return seqOf;
} }
@ -96,8 +97,7 @@ public class DeleteNamedVariableListRequest implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -111,7 +111,6 @@ public class DeleteNamedVariableListRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -204,7 +203,7 @@ public class DeleteNamedVariableListRequest implements Serializable {
codeLength += berTag.decode(is); codeLength += berTag.decode(is);
} }
if (berTag.equals(BerVisibleString.tag)) { if (berTag.equals(BasicIdentifier.tag)) {
basic = new BasicIdentifier(); basic = new BasicIdentifier();
codeLength += basic.decode(is, false); codeLength += basic.decode(is, false);
return codeLength; return codeLength;
@ -223,7 +222,6 @@ public class DeleteNamedVariableListRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -381,8 +379,8 @@ public class DeleteNamedVariableListRequest implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -392,7 +390,6 @@ public class DeleteNamedVariableListRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -444,3 +441,4 @@ public class DeleteNamedVariableListRequest implements Serializable {
} }
} }

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class DeleteNamedVariableListResponse implements Serializable { public class DeleteNamedVariableListResponse implements Serializable {
@ -119,8 +125,8 @@ public class DeleteNamedVariableListResponse implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -130,7 +136,6 @@ public class DeleteNamedVariableListResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -170,3 +175,4 @@ public class DeleteNamedVariableListResponse implements Serializable {
} }
} }

@ -0,0 +1,180 @@
/**
* This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/
package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class DirectoryEntry implements Serializable {
private static final long serialVersionUID = 1L;
public static final BerTag tag = new BerTag(BerTag.UNIVERSAL_CLASS, BerTag.CONSTRUCTED, 16);
public byte[] code = null;
private FileName fileName = null;
private FileAttributes fileAttributes = null;
public DirectoryEntry() {
}
public DirectoryEntry(byte[] code) {
this.code = code;
}
public void setFileName(FileName fileName) {
this.fileName = fileName;
}
public FileName getFileName() {
return fileName;
}
public void setFileAttributes(FileAttributes fileAttributes) {
this.fileAttributes = fileAttributes;
}
public FileAttributes getFileAttributes() {
return fileAttributes;
}
public int encode(OutputStream os) throws IOException {
return encode(os, true);
}
public int encode(OutputStream os, boolean withTag) throws IOException {
if (code != null) {
for (int i = code.length - 1; i >= 0; i--) {
os.write(code[i]);
}
if (withTag) {
return tag.encode(os) + code.length;
}
return code.length;
}
int codeLength = 0;
codeLength += fileAttributes.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 1
os.write(0xA1);
codeLength += 1;
codeLength += fileName.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 0
os.write(0xA0);
codeLength += 1;
codeLength += BerLength.encodeLength(os, codeLength);
if (withTag) {
codeLength += tag.encode(os);
}
return codeLength;
}
public int decode(InputStream is) throws IOException {
return decode(is, true);
}
public int decode(InputStream is, boolean withTag) throws IOException {
int codeLength = 0;
int subCodeLength = 0;
BerTag berTag = new BerTag();
if (withTag) {
codeLength += tag.decodeAndCheck(is);
}
BerLength length = new BerLength();
codeLength += length.decode(is);
int totalLength = length.val;
codeLength += totalLength;
subCodeLength += berTag.decode(is);
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 0)) {
fileName = new FileName();
subCodeLength += fileName.decode(is, false);
subCodeLength += berTag.decode(is);
}
else {
throw new IOException("Tag does not match the mandatory sequence element tag.");
}
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 1)) {
fileAttributes = new FileAttributes();
subCodeLength += fileAttributes.decode(is, false);
if (subCodeLength == totalLength) {
return codeLength;
}
}
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
}
public void encodeAndSave(int encodingSizeGuess) throws IOException {
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(encodingSizeGuess);
encode(os, false);
code = os.getArray();
}
public String toString() {
StringBuilder sb = new StringBuilder();
appendAsString(sb, 0);
return sb.toString();
}
public void appendAsString(StringBuilder sb, int indentLevel) {
sb.append("{");
sb.append("\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
if (fileName != null) {
sb.append("fileName: ");
fileName.appendAsString(sb, indentLevel + 1);
}
else {
sb.append("fileName: <empty-required-field>");
}
sb.append(",\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
if (fileAttributes != null) {
sb.append("fileAttributes: ");
fileAttributes.appendAsString(sb, indentLevel + 1);
}
else {
sb.append("fileAttributes: <empty-required-field>");
}
sb.append("\n");
for (int i = 0; i < indentLevel; i++) {
sb.append("\t");
}
sb.append("}");
}
}

@ -0,0 +1,180 @@
/**
* This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/
package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class FileAttributes implements Serializable {
private static final long serialVersionUID = 1L;
public static final BerTag tag = new BerTag(BerTag.UNIVERSAL_CLASS, BerTag.CONSTRUCTED, 16);
public byte[] code = null;
private Unsigned32 sizeOfFile = null;
private BerGeneralizedTime lastModified = null;
public FileAttributes() {
}
public FileAttributes(byte[] code) {
this.code = code;
}
public void setSizeOfFile(Unsigned32 sizeOfFile) {
this.sizeOfFile = sizeOfFile;
}
public Unsigned32 getSizeOfFile() {
return sizeOfFile;
}
public void setLastModified(BerGeneralizedTime lastModified) {
this.lastModified = lastModified;
}
public BerGeneralizedTime getLastModified() {
return lastModified;
}
public int encode(OutputStream os) throws IOException {
return encode(os, true);
}
public int encode(OutputStream os, boolean withTag) throws IOException {
if (code != null) {
for (int i = code.length - 1; i >= 0; i--) {
os.write(code[i]);
}
if (withTag) {
return tag.encode(os) + code.length;
}
return code.length;
}
int codeLength = 0;
if (lastModified != null) {
codeLength += lastModified.encode(os, false);
// write tag: CONTEXT_CLASS, PRIMITIVE, 1
os.write(0x81);
codeLength += 1;
}
codeLength += sizeOfFile.encode(os, false);
// write tag: CONTEXT_CLASS, PRIMITIVE, 0
os.write(0x80);
codeLength += 1;
codeLength += BerLength.encodeLength(os, codeLength);
if (withTag) {
codeLength += tag.encode(os);
}
return codeLength;
}
public int decode(InputStream is) throws IOException {
return decode(is, true);
}
public int decode(InputStream is, boolean withTag) throws IOException {
int codeLength = 0;
int subCodeLength = 0;
BerTag berTag = new BerTag();
if (withTag) {
codeLength += tag.decodeAndCheck(is);
}
BerLength length = new BerLength();
codeLength += length.decode(is);
int totalLength = length.val;
codeLength += totalLength;
subCodeLength += berTag.decode(is);
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 0)) {
sizeOfFile = new Unsigned32();
subCodeLength += sizeOfFile.decode(is, false);
if (subCodeLength == totalLength) {
return codeLength;
}
subCodeLength += berTag.decode(is);
}
else {
throw new IOException("Tag does not match the mandatory sequence element tag.");
}
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 1)) {
lastModified = new BerGeneralizedTime();
subCodeLength += lastModified.decode(is, false);
if (subCodeLength == totalLength) {
return codeLength;
}
}
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
}
public void encodeAndSave(int encodingSizeGuess) throws IOException {
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(encodingSizeGuess);
encode(os, false);
code = os.getArray();
}
public String toString() {
StringBuilder sb = new StringBuilder();
appendAsString(sb, 0);
return sb.toString();
}
public void appendAsString(StringBuilder sb, int indentLevel) {
sb.append("{");
sb.append("\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
if (sizeOfFile != null) {
sb.append("sizeOfFile: ").append(sizeOfFile);
}
else {
sb.append("sizeOfFile: <empty-required-field>");
}
if (lastModified != null) {
sb.append(",\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
sb.append("lastModified: ").append(lastModified);
}
sb.append("\n");
for (int i = 0; i < indentLevel; i++) {
sb.append("\t");
}
sb.append("}");
}
}

@ -0,0 +1,186 @@
/**
* This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/
package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class FileDirectoryRequest implements Serializable {
private static final long serialVersionUID = 1L;
public static final BerTag tag = new BerTag(BerTag.UNIVERSAL_CLASS, BerTag.CONSTRUCTED, 16);
public byte[] code = null;
private FileName fileSpecification = null;
private FileName continueAfter = null;
public FileDirectoryRequest() {
}
public FileDirectoryRequest(byte[] code) {
this.code = code;
}
public void setFileSpecification(FileName fileSpecification) {
this.fileSpecification = fileSpecification;
}
public FileName getFileSpecification() {
return fileSpecification;
}
public void setContinueAfter(FileName continueAfter) {
this.continueAfter = continueAfter;
}
public FileName getContinueAfter() {
return continueAfter;
}
public int encode(OutputStream os) throws IOException {
return encode(os, true);
}
public int encode(OutputStream os, boolean withTag) throws IOException {
if (code != null) {
for (int i = code.length - 1; i >= 0; i--) {
os.write(code[i]);
}
if (withTag) {
return tag.encode(os) + code.length;
}
return code.length;
}
int codeLength = 0;
if (continueAfter != null) {
codeLength += continueAfter.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 1
os.write(0xA1);
codeLength += 1;
}
if (fileSpecification != null) {
codeLength += fileSpecification.encode(os, false);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 0
os.write(0xA0);
codeLength += 1;
}
codeLength += BerLength.encodeLength(os, codeLength);
if (withTag) {
codeLength += tag.encode(os);
}
return codeLength;
}
public int decode(InputStream is) throws IOException {
return decode(is, true);
}
public int decode(InputStream is, boolean withTag) throws IOException {
int codeLength = 0;
int subCodeLength = 0;
BerTag berTag = new BerTag();
if (withTag) {
codeLength += tag.decodeAndCheck(is);
}
BerLength length = new BerLength();
codeLength += length.decode(is);
int totalLength = length.val;
codeLength += totalLength;
if (totalLength == 0) {
return codeLength;
}
subCodeLength += berTag.decode(is);
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 0)) {
fileSpecification = new FileName();
subCodeLength += fileSpecification.decode(is, false);
if (subCodeLength == totalLength) {
return codeLength;
}
subCodeLength += berTag.decode(is);
}
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 1)) {
continueAfter = new FileName();
subCodeLength += continueAfter.decode(is, false);
if (subCodeLength == totalLength) {
return codeLength;
}
}
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
}
public void encodeAndSave(int encodingSizeGuess) throws IOException {
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(encodingSizeGuess);
encode(os, false);
code = os.getArray();
}
public String toString() {
StringBuilder sb = new StringBuilder();
appendAsString(sb, 0);
return sb.toString();
}
public void appendAsString(StringBuilder sb, int indentLevel) {
sb.append("{");
boolean firstSelectedElement = true;
if (fileSpecification != null) {
sb.append("\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
sb.append("fileSpecification: ");
fileSpecification.appendAsString(sb, indentLevel + 1);
firstSelectedElement = false;
}
if (continueAfter != null) {
if (!firstSelectedElement) {
sb.append(",\n");
}
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
sb.append("continueAfter: ");
continueAfter.appendAsString(sb, indentLevel + 1);
firstSelectedElement = false;
}
sb.append("\n");
for (int i = 0; i < indentLevel; i++) {
sb.append("\t");
}
sb.append("}");
}
}

@ -0,0 +1,312 @@
/**
* This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/
package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class FileDirectoryResponse implements Serializable {
private static final long serialVersionUID = 1L;
public static class ListOfDirectoryEntry implements Serializable {
private static final long serialVersionUID = 1L;
public static final BerTag tag = new BerTag(BerTag.UNIVERSAL_CLASS, BerTag.CONSTRUCTED, 16);
public byte[] code = null;
private List<DirectoryEntry> seqOf = null;
public ListOfDirectoryEntry() {
seqOf = new ArrayList<DirectoryEntry>();
}
public ListOfDirectoryEntry(byte[] code) {
this.code = code;
}
public List<DirectoryEntry> getDirectoryEntry() {
if (seqOf == null) {
seqOf = new ArrayList<DirectoryEntry>();
}
return seqOf;
}
public int encode(OutputStream os) throws IOException {
return encode(os, true);
}
public int encode(OutputStream os, boolean withTag) throws IOException {
if (code != null) {
for (int i = code.length - 1; i >= 0; i--) {
os.write(code[i]);
}
if (withTag) {
return tag.encode(os) + code.length;
}
return code.length;
}
int codeLength = 0;
for (int i = (seqOf.size() - 1); i >= 0; i--) {
codeLength += seqOf.get(i).encode(os, true);
}
codeLength += BerLength.encodeLength(os, codeLength);
if (withTag) {
codeLength += tag.encode(os);
}
return codeLength;
}
public int decode(InputStream is) throws IOException {
return decode(is, true);
}
public int decode(InputStream is, boolean withTag) throws IOException {
int codeLength = 0;
int subCodeLength = 0;
if (withTag) {
codeLength += tag.decodeAndCheck(is);
}
BerLength length = new BerLength();
codeLength += length.decode(is);
int totalLength = length.val;
while (subCodeLength < totalLength) {
DirectoryEntry element = new DirectoryEntry();
subCodeLength += element.decode(is, true);
seqOf.add(element);
}
if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
}
codeLength += subCodeLength;
return codeLength;
}
public void encodeAndSave(int encodingSizeGuess) throws IOException {
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(encodingSizeGuess);
encode(os, false);
code = os.getArray();
}
public String toString() {
StringBuilder sb = new StringBuilder();
appendAsString(sb, 0);
return sb.toString();
}
public void appendAsString(StringBuilder sb, int indentLevel) {
sb.append("{\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
if (seqOf == null) {
sb.append("null");
}
else {
Iterator<DirectoryEntry> it = seqOf.iterator();
if (it.hasNext()) {
it.next().appendAsString(sb, indentLevel + 1);
while (it.hasNext()) {
sb.append(",\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
it.next().appendAsString(sb, indentLevel + 1);
}
}
}
sb.append("\n");
for (int i = 0; i < indentLevel; i++) {
sb.append("\t");
}
sb.append("}");
}
}
public static final BerTag tag = new BerTag(BerTag.UNIVERSAL_CLASS, BerTag.CONSTRUCTED, 16);
public byte[] code = null;
private ListOfDirectoryEntry listOfDirectoryEntry = null;
private BerBoolean moreFollows = null;
public FileDirectoryResponse() {
}
public FileDirectoryResponse(byte[] code) {
this.code = code;
}
public void setListOfDirectoryEntry(ListOfDirectoryEntry listOfDirectoryEntry) {
this.listOfDirectoryEntry = listOfDirectoryEntry;
}
public ListOfDirectoryEntry getListOfDirectoryEntry() {
return listOfDirectoryEntry;
}
public void setMoreFollows(BerBoolean moreFollows) {
this.moreFollows = moreFollows;
}
public BerBoolean getMoreFollows() {
return moreFollows;
}
public int encode(OutputStream os) throws IOException {
return encode(os, true);
}
public int encode(OutputStream os, boolean withTag) throws IOException {
if (code != null) {
for (int i = code.length - 1; i >= 0; i--) {
os.write(code[i]);
}
if (withTag) {
return tag.encode(os) + code.length;
}
return code.length;
}
int codeLength = 0;
int sublength;
if (moreFollows != null) {
codeLength += moreFollows.encode(os, false);
// write tag: CONTEXT_CLASS, PRIMITIVE, 1
os.write(0x81);
codeLength += 1;
}
sublength = listOfDirectoryEntry.encode(os, true);
codeLength += sublength;
codeLength += BerLength.encodeLength(os, sublength);
// write tag: CONTEXT_CLASS, CONSTRUCTED, 0
os.write(0xA0);
codeLength += 1;
codeLength += BerLength.encodeLength(os, codeLength);
if (withTag) {
codeLength += tag.encode(os);
}
return codeLength;
}
public int decode(InputStream is) throws IOException {
return decode(is, true);
}
public int decode(InputStream is, boolean withTag) throws IOException {
int codeLength = 0;
int subCodeLength = 0;
BerTag berTag = new BerTag();
if (withTag) {
codeLength += tag.decodeAndCheck(is);
}
BerLength length = new BerLength();
codeLength += length.decode(is);
int totalLength = length.val;
codeLength += totalLength;
subCodeLength += berTag.decode(is);
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 0)) {
subCodeLength += length.decode(is);
listOfDirectoryEntry = new ListOfDirectoryEntry();
subCodeLength += listOfDirectoryEntry.decode(is, true);
if (subCodeLength == totalLength) {
return codeLength;
}
subCodeLength += berTag.decode(is);
}
else {
throw new IOException("Tag does not match the mandatory sequence element tag.");
}
if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.PRIMITIVE, 1)) {
moreFollows = new BerBoolean();
subCodeLength += moreFollows.decode(is, false);
if (subCodeLength == totalLength) {
return codeLength;
}
}
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
}
public void encodeAndSave(int encodingSizeGuess) throws IOException {
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(encodingSizeGuess);
encode(os, false);
code = os.getArray();
}
public String toString() {
StringBuilder sb = new StringBuilder();
appendAsString(sb, 0);
return sb.toString();
}
public void appendAsString(StringBuilder sb, int indentLevel) {
sb.append("{");
sb.append("\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
if (listOfDirectoryEntry != null) {
sb.append("listOfDirectoryEntry: ");
listOfDirectoryEntry.appendAsString(sb, indentLevel + 1);
}
else {
sb.append("listOfDirectoryEntry: <empty-required-field>");
}
if (moreFollows != null) {
sb.append(",\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
sb.append("moreFollows: ").append(moreFollows);
}
sb.append("\n");
for (int i = 0; i < indentLevel; i++) {
sb.append("\t");
}
sb.append("}");
}
}

@ -0,0 +1,147 @@
/**
* This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/
package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class FileName implements Serializable {
private static final long serialVersionUID = 1L;
public static final BerTag tag = new BerTag(BerTag.UNIVERSAL_CLASS, BerTag.CONSTRUCTED, 16);
public byte[] code = null;
private List<BerGraphicString> seqOf = null;
public FileName() {
seqOf = new ArrayList<BerGraphicString>();
}
public FileName(byte[] code) {
this.code = code;
}
public List<BerGraphicString> getBerGraphicString() {
if (seqOf == null) {
seqOf = new ArrayList<BerGraphicString>();
}
return seqOf;
}
public int encode(OutputStream os) throws IOException {
return encode(os, true);
}
public int encode(OutputStream os, boolean withTag) throws IOException {
if (code != null) {
for (int i = code.length - 1; i >= 0; i--) {
os.write(code[i]);
}
if (withTag) {
return tag.encode(os) + code.length;
}
return code.length;
}
int codeLength = 0;
for (int i = (seqOf.size() - 1); i >= 0; i--) {
codeLength += seqOf.get(i).encode(os, true);
}
codeLength += BerLength.encodeLength(os, codeLength);
if (withTag) {
codeLength += tag.encode(os);
}
return codeLength;
}
public int decode(InputStream is) throws IOException {
return decode(is, true);
}
public int decode(InputStream is, boolean withTag) throws IOException {
int codeLength = 0;
int subCodeLength = 0;
if (withTag) {
codeLength += tag.decodeAndCheck(is);
}
BerLength length = new BerLength();
codeLength += length.decode(is);
int totalLength = length.val;
while (subCodeLength < totalLength) {
BerGraphicString element = new BerGraphicString();
subCodeLength += element.decode(is, true);
seqOf.add(element);
}
if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
}
codeLength += subCodeLength;
return codeLength;
}
public void encodeAndSave(int encodingSizeGuess) throws IOException {
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(encodingSizeGuess);
encode(os, false);
code = os.getArray();
}
public String toString() {
StringBuilder sb = new StringBuilder();
appendAsString(sb, 0);
return sb.toString();
}
public void appendAsString(StringBuilder sb, int indentLevel) {
sb.append("{\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
if (seqOf == null) {
sb.append("null");
}
else {
Iterator<BerGraphicString> it = seqOf.iterator();
if (it.hasNext()) {
sb.append(it.next());
while (it.hasNext()) {
sb.append(",\n");
for (int i = 0; i < indentLevel + 1; i++) {
sb.append("\t");
}
sb.append(it.next());
}
}
}
sb.append("\n");
for (int i = 0; i < indentLevel; i++) {
sb.append("\t");
}
sb.append("}");
}
}

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.BerOctetString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class FloatingPoint extends BerOctetString { public class FloatingPoint extends BerOctetString {

@ -1,18 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerNull;
public class GetNameListRequest implements Serializable { public class GetNameListRequest implements Serializable {
@ -140,7 +145,6 @@ public class GetNameListRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -307,8 +311,8 @@ public class GetNameListRequest implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -318,7 +322,6 @@ public class GetNameListRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -368,3 +371,4 @@ public class GetNameListRequest implements Serializable {
} }
} }

@ -1,21 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerBoolean;
public class GetNameListResponse implements Serializable { public class GetNameListResponse implements Serializable {
@ -30,7 +32,7 @@ public class GetNameListResponse implements Serializable {
private List<Identifier> seqOf = null; private List<Identifier> seqOf = null;
public ListOfIdentifier() { public ListOfIdentifier() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Identifier>();
} }
public ListOfIdentifier(byte[] code) { public ListOfIdentifier(byte[] code) {
@ -39,7 +41,7 @@ public class GetNameListResponse implements Serializable {
public List<Identifier> getIdentifier() { public List<Identifier> getIdentifier() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Identifier>();
} }
return seqOf; return seqOf;
} }
@ -95,8 +97,7 @@ public class GetNameListResponse implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -110,7 +111,6 @@ public class GetNameListResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -256,8 +256,8 @@ public class GetNameListResponse implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -267,7 +267,6 @@ public class GetNameListResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -305,3 +304,4 @@ public class GetNameListResponse implements Serializable {
} }
} }

@ -1,9 +1,24 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class GetNamedVariableListAttributesRequest extends ObjectName { public class GetNamedVariableListAttributesRequest extends ObjectName {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -1,18 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerBoolean;
public class GetNamedVariableListAttributesResponse implements Serializable { public class GetNamedVariableListAttributesResponse implements Serializable {
@ -120,8 +125,8 @@ public class GetNamedVariableListAttributesResponse implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -131,7 +136,6 @@ public class GetNamedVariableListAttributesResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -172,3 +176,4 @@ public class GetNamedVariableListAttributesResponse implements Serializable {
} }
} }

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class GetVariableAccessAttributesRequest implements Serializable { public class GetVariableAccessAttributesRequest implements Serializable {
@ -94,7 +100,6 @@ public class GetVariableAccessAttributesRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -113,3 +118,4 @@ public class GetVariableAccessAttributesRequest implements Serializable {
} }
} }

@ -1,18 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerBoolean;
public class GetVariableAccessAttributesResponse implements Serializable { public class GetVariableAccessAttributesResponse implements Serializable {
@ -125,8 +130,8 @@ public class GetVariableAccessAttributesResponse implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -136,7 +141,6 @@ public class GetVariableAccessAttributesResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -177,3 +181,4 @@ public class GetVariableAccessAttributesResponse implements Serializable {
} }
} }

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.string.BerVisibleString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class Identifier extends BerVisibleString { public class Identifier extends BerVisibleString {

@ -1,20 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class InformationReport implements Serializable { public class InformationReport implements Serializable {
@ -29,7 +32,7 @@ public class InformationReport implements Serializable {
private List<AccessResult> seqOf = null; private List<AccessResult> seqOf = null;
public ListOfAccessResult() { public ListOfAccessResult() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<AccessResult>();
} }
public ListOfAccessResult(byte[] code) { public ListOfAccessResult(byte[] code) {
@ -38,7 +41,7 @@ public class InformationReport implements Serializable {
public List<AccessResult> getAccessResult() { public List<AccessResult> getAccessResult() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<AccessResult>();
} }
return seqOf; return seqOf;
} }
@ -94,8 +97,7 @@ public class InformationReport implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -109,7 +111,6 @@ public class InformationReport implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -242,8 +243,8 @@ public class InformationReport implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -253,7 +254,6 @@ public class InformationReport implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -295,3 +295,4 @@ public class InformationReport implements Serializable {
} }
} }

@ -1,9 +1,24 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class InitiateErrorPDU extends ServiceError { public class InitiateErrorPDU extends ServiceError {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class InitiateRequestPDU implements Serializable { public class InitiateRequestPDU implements Serializable {
@ -146,8 +152,8 @@ public class InitiateRequestPDU implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -157,7 +163,6 @@ public class InitiateRequestPDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -378,8 +383,8 @@ public class InitiateRequestPDU implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -389,7 +394,6 @@ public class InitiateRequestPDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -461,3 +465,4 @@ public class InitiateRequestPDU implements Serializable {
} }
} }

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class InitiateResponsePDU implements Serializable { public class InitiateResponsePDU implements Serializable {
@ -146,8 +152,8 @@ public class InitiateResponsePDU implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -157,7 +163,6 @@ public class InitiateResponsePDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -378,8 +383,8 @@ public class InitiateResponsePDU implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -389,7 +394,6 @@ public class InitiateResponsePDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -461,3 +465,4 @@ public class InitiateResponsePDU implements Serializable {
} }
} }

@ -1,12 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.types.BerInteger;
public class Integer16 extends BerInteger { public class Integer16 extends BerInteger {

@ -1,12 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.types.BerInteger;
public class Integer32 extends BerInteger { public class Integer32 extends BerInteger {

@ -1,12 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.types.BerInteger;
public class Integer8 extends BerInteger { public class Integer8 extends BerInteger {

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.string.BerVisibleString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class MMSString extends BerVisibleString { public class MMSString extends BerVisibleString {

@ -1,16 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class MMSpdu implements Serializable { public class MMSpdu implements Serializable {
@ -272,7 +279,6 @@ public class MMSpdu implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -338,3 +344,4 @@ public class MMSpdu implements Serializable {
} }
} }

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerInteger;
public class ObjectClass implements Serializable { public class ObjectClass implements Serializable {
@ -89,7 +95,6 @@ public class ObjectClass implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -107,3 +112,4 @@ public class ObjectClass implements Serializable {
} }
} }

@ -1,25 +1,29 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.string.BerVisibleString;
public class ObjectName implements Serializable { public class ObjectName implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public byte[] code = null; public byte[] code = null;
public static class DomainSpecific implements Serializable { public static class DomainSpecific implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -104,7 +108,7 @@ public class ObjectName implements Serializable {
codeLength += totalLength; codeLength += totalLength;
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
if (berTag.equals(BerVisibleString.tag)) { if (berTag.equals(Identifier.tag)) {
domainID = new Identifier(); domainID = new Identifier();
subCodeLength += domainID.decode(is, false); subCodeLength += domainID.decode(is, false);
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
@ -113,15 +117,15 @@ public class ObjectName implements Serializable {
throw new IOException("Tag does not match the mandatory sequence element tag."); throw new IOException("Tag does not match the mandatory sequence element tag.");
} }
if (berTag.equals(BerVisibleString.tag)) { if (berTag.equals(Identifier.tag)) {
itemID = new Identifier(); itemID = new Identifier();
subCodeLength += itemID.decode(is, false); subCodeLength += itemID.decode(is, false);
if (subCodeLength == totalLength) { if (subCodeLength == totalLength) {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -131,7 +135,6 @@ public class ObjectName implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -289,7 +292,6 @@ public class ObjectName implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -318,3 +320,4 @@ public class ObjectName implements Serializable {
} }
} }

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.BerBitString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class ParameterSupportOptions extends BerBitString { public class ParameterSupportOptions extends BerBitString {

@ -1,18 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerBoolean;
public class ReadRequest implements Serializable { public class ReadRequest implements Serializable {
@ -124,8 +129,8 @@ public class ReadRequest implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -135,7 +140,6 @@ public class ReadRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -177,3 +181,4 @@ public class ReadRequest implements Serializable {
} }
} }

@ -1,20 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class ReadResponse implements Serializable { public class ReadResponse implements Serializable {
@ -29,7 +32,7 @@ public class ReadResponse implements Serializable {
private List<AccessResult> seqOf = null; private List<AccessResult> seqOf = null;
public ListOfAccessResult() { public ListOfAccessResult() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<AccessResult>();
} }
public ListOfAccessResult(byte[] code) { public ListOfAccessResult(byte[] code) {
@ -38,7 +41,7 @@ public class ReadResponse implements Serializable {
public List<AccessResult> getAccessResult() { public List<AccessResult> getAccessResult() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<AccessResult>();
} }
return seqOf; return seqOf;
} }
@ -94,8 +97,7 @@ public class ReadResponse implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -109,7 +111,6 @@ public class ReadResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -254,8 +255,8 @@ public class ReadResponse implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -265,7 +266,6 @@ public class ReadResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -308,3 +308,4 @@ public class ReadResponse implements Serializable {
} }
} }

@ -1,18 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerInteger;
public class RejectPDU implements Serializable { public class RejectPDU implements Serializable {
@ -324,7 +329,6 @@ public class RejectPDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -489,8 +493,8 @@ public class RejectPDU implements Serializable {
if (subCodeLength == totalLength) { if (subCodeLength == totalLength) {
return codeLength; return codeLength;
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -500,7 +504,6 @@ public class RejectPDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -542,3 +545,4 @@ public class RejectPDU implements Serializable {
} }
} }

@ -1,19 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerInteger;
import org.openmuc.jasn1.ber.types.string.BerVisibleString;
public class ServiceError implements Serializable { public class ServiceError implements Serializable {
@ -371,7 +375,6 @@ public class ServiceError implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -587,8 +590,8 @@ public class ServiceError implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -598,7 +601,6 @@ public class ServiceError implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -644,3 +646,4 @@ public class ServiceError implements Serializable {
} }
} }

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.BerBitString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class ServiceSupportOptions extends BerBitString { public class ServiceSupportOptions extends BerBitString {

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.BerOctetString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class TimeOfDay extends BerOctetString { public class TimeOfDay extends BerOctetString {

@ -1,30 +1,29 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerBoolean;
import org.openmuc.jasn1.ber.types.BerInteger;
import org.openmuc.jasn1.ber.types.BerNull;
public class TypeDescription implements Serializable { public class TypeDescription implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public byte[] code = null; public byte[] code = null;
public static class Array implements Serializable { public static class Array implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -158,8 +157,8 @@ public class TypeDescription implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -169,7 +168,6 @@ public class TypeDescription implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -341,8 +339,8 @@ public class TypeDescription implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -352,7 +350,6 @@ public class TypeDescription implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -400,7 +397,7 @@ public class TypeDescription implements Serializable {
private List<SEQUENCE> seqOf = null; private List<SEQUENCE> seqOf = null;
public Components() { public Components() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<SEQUENCE>();
} }
public Components(byte[] code) { public Components(byte[] code) {
@ -409,7 +406,7 @@ public class TypeDescription implements Serializable {
public List<SEQUENCE> getSEQUENCE() { public List<SEQUENCE> getSEQUENCE() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<SEQUENCE>();
} }
return seqOf; return seqOf;
} }
@ -465,8 +462,7 @@ public class TypeDescription implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -480,7 +476,6 @@ public class TypeDescription implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -620,8 +615,8 @@ public class TypeDescription implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -631,7 +626,6 @@ public class TypeDescription implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -758,7 +752,7 @@ public class TypeDescription implements Serializable {
codeLength += totalLength; codeLength += totalLength;
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
if (berTag.equals(BerInteger.tag)) { if (berTag.equals(Unsigned8.tag)) {
formatWidth = new Unsigned8(); formatWidth = new Unsigned8();
subCodeLength += formatWidth.decode(is, false); subCodeLength += formatWidth.decode(is, false);
subCodeLength += berTag.decode(is); subCodeLength += berTag.decode(is);
@ -767,15 +761,15 @@ public class TypeDescription implements Serializable {
throw new IOException("Tag does not match the mandatory sequence element tag."); throw new IOException("Tag does not match the mandatory sequence element tag.");
} }
if (berTag.equals(BerInteger.tag)) { if (berTag.equals(Unsigned8.tag)) {
exponentWidth = new Unsigned8(); exponentWidth = new Unsigned8();
subCodeLength += exponentWidth.decode(is, false); subCodeLength += exponentWidth.decode(is, false);
if (subCodeLength == totalLength) { if (subCodeLength == totalLength) {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -785,7 +779,6 @@ public class TypeDescription implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -1150,7 +1143,6 @@ public class TypeDescription implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -1226,3 +1218,4 @@ public class TypeDescription implements Serializable {
} }
} }

@ -1,16 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class TypeSpecification implements Serializable { public class TypeSpecification implements Serializable {
@ -88,7 +95,6 @@ public class TypeSpecification implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -107,3 +113,4 @@ public class TypeSpecification implements Serializable {
} }
} }

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class UnconfirmedPDU implements Serializable { public class UnconfirmedPDU implements Serializable {
@ -91,8 +97,8 @@ public class UnconfirmedPDU implements Serializable {
if (subCodeLength == totalLength) { if (subCodeLength == totalLength) {
return codeLength; return codeLength;
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -102,7 +108,6 @@ public class UnconfirmedPDU implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -132,3 +137,4 @@ public class UnconfirmedPDU implements Serializable {
} }
} }

@ -1,16 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class UnconfirmedService implements Serializable { public class UnconfirmedService implements Serializable {
@ -88,7 +95,6 @@ public class UnconfirmedService implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -107,3 +113,4 @@ public class UnconfirmedService implements Serializable {
} }
} }

@ -1,12 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.types.BerInteger;
public class Unsigned16 extends BerInteger { public class Unsigned16 extends BerInteger {

@ -1,12 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.types.BerInteger;
public class Unsigned32 extends BerInteger { public class Unsigned32 extends BerInteger {

@ -1,12 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.types.BerInteger;
public class Unsigned8 extends BerInteger { public class Unsigned8 extends BerInteger {

@ -1,10 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import org.openmuc.jasn1.ber.types.BerOctetString; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
public class UtcTime extends BerOctetString { public class UtcTime extends BerOctetString {

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class VariableAccessSpecification implements Serializable { public class VariableAccessSpecification implements Serializable {
@ -117,7 +123,6 @@ public class VariableAccessSpecification implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -142,3 +147,4 @@ public class VariableAccessSpecification implements Serializable {
} }
} }

@ -1,20 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class VariableDefs implements Serializable { public class VariableDefs implements Serializable {
@ -123,8 +126,8 @@ public class VariableDefs implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ ", actual sequence length: " + subCodeLength);
} }
@ -134,7 +137,6 @@ public class VariableDefs implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -179,7 +181,7 @@ public class VariableDefs implements Serializable {
private List<SEQUENCE> seqOf = null; private List<SEQUENCE> seqOf = null;
public VariableDefs() { public VariableDefs() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<SEQUENCE>();
} }
public VariableDefs(byte[] code) { public VariableDefs(byte[] code) {
@ -188,7 +190,7 @@ public class VariableDefs implements Serializable {
public List<SEQUENCE> getSEQUENCE() { public List<SEQUENCE> getSEQUENCE() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<SEQUENCE>();
} }
return seqOf; return seqOf;
} }
@ -244,8 +246,7 @@ public class VariableDefs implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -259,7 +260,6 @@ public class VariableDefs implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -297,3 +297,4 @@ public class VariableDefs implements Serializable {
} }
} }

@ -1,17 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable; import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class VariableSpecification implements Serializable { public class VariableSpecification implements Serializable {
@ -94,7 +100,6 @@ public class VariableSpecification implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -113,3 +118,4 @@ public class VariableSpecification implements Serializable {
} }
} }

@ -1,20 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
public class WriteRequest implements Serializable { public class WriteRequest implements Serializable {
@ -29,7 +32,7 @@ public class WriteRequest implements Serializable {
private List<Data> seqOf = null; private List<Data> seqOf = null;
public ListOfData() { public ListOfData() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Data>();
} }
public ListOfData(byte[] code) { public ListOfData(byte[] code) {
@ -38,7 +41,7 @@ public class WriteRequest implements Serializable {
public List<Data> getData() { public List<Data> getData() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<Data>();
} }
return seqOf; return seqOf;
} }
@ -94,8 +97,7 @@ public class WriteRequest implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ " but has " + subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -109,7 +111,6 @@ public class WriteRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -242,8 +243,8 @@ public class WriteRequest implements Serializable {
return codeLength; return codeLength;
} }
} }
throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength);
+ subCodeLength);
} }
@ -253,7 +254,6 @@ public class WriteRequest implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -295,3 +295,4 @@ public class WriteRequest implements Serializable {
} }
} }

@ -1,21 +1,23 @@
/** /**
* This class file was automatically generated by jASN1 v1.9.0 (http://www.openmuc.org) * This class file was automatically generated by jASN1 v1.9.1-SNAPSHOT (http://www.openmuc.org)
*/ */
package org.openmuc.openiec61850.internal.mms.asn1; package org.openmuc.openiec61850.internal.mms.asn1;
import java.io.IOException; import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Serializable; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.io.Serializable;
import org.openmuc.jasn1.ber.*;
import org.openmuc.jasn1.ber.types.*;
import org.openmuc.jasn1.ber.types.string.*;
import org.openmuc.jasn1.ber.BerLength;
import org.openmuc.jasn1.ber.BerTag;
import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerNull;
public class WriteResponse implements Serializable { public class WriteResponse implements Serializable {
@ -120,7 +122,6 @@ public class WriteResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -149,7 +150,7 @@ public class WriteResponse implements Serializable {
private List<CHOICE> seqOf = null; private List<CHOICE> seqOf = null;
public WriteResponse() { public WriteResponse() {
seqOf = new ArrayList<>(); seqOf = new ArrayList<CHOICE>();
} }
public WriteResponse(byte[] code) { public WriteResponse(byte[] code) {
@ -158,7 +159,7 @@ public class WriteResponse implements Serializable {
public List<CHOICE> getCHOICE() { public List<CHOICE> getCHOICE() {
if (seqOf == null) { if (seqOf == null) {
seqOf = new ArrayList<>(); seqOf = new ArrayList<CHOICE>();
} }
return seqOf; return seqOf;
} }
@ -214,8 +215,7 @@ public class WriteResponse implements Serializable {
seqOf.add(element); seqOf.add(element);
} }
if (subCodeLength != totalLength) { if (subCodeLength != totalLength) {
throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " throw new IOException("Decoded SequenceOf or SetOf has wrong length. Expected " + totalLength + " but has " + subCodeLength);
+ subCodeLength);
} }
codeLength += subCodeLength; codeLength += subCodeLength;
@ -229,7 +229,6 @@ public class WriteResponse implements Serializable {
code = os.getArray(); code = os.getArray();
} }
@Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
appendAsString(sb, 0); appendAsString(sb, 0);
@ -267,3 +266,4 @@ public class WriteResponse implements Serializable {
} }
} }

@ -20,6 +20,7 @@ import java.io.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Date; import java.util.Date;
@ -35,6 +36,7 @@ import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
import org.openmuc.jasn1.ber.types.BerBoolean; import org.openmuc.jasn1.ber.types.BerBoolean;
import org.openmuc.jasn1.ber.types.BerInteger; import org.openmuc.jasn1.ber.types.BerInteger;
import org.openmuc.jasn1.ber.types.BerNull; import org.openmuc.jasn1.ber.types.BerNull;
import org.openmuc.jasn1.ber.types.string.BerGraphicString;
import org.openmuc.jasn1.ber.types.string.BerVisibleString; import org.openmuc.jasn1.ber.types.string.BerVisibleString;
import org.openmuc.josistack.AcseAssociation; import org.openmuc.josistack.AcseAssociation;
import org.openmuc.josistack.ByteBufferInputStream; import org.openmuc.josistack.ByteBufferInputStream;
@ -50,6 +52,8 @@ import org.openmuc.openiec61850.internal.mms.asn1.DefineNamedVariableListRequest
import org.openmuc.openiec61850.internal.mms.asn1.DeleteNamedVariableListRequest; import org.openmuc.openiec61850.internal.mms.asn1.DeleteNamedVariableListRequest;
import org.openmuc.openiec61850.internal.mms.asn1.DeleteNamedVariableListRequest.ListOfVariableListName; import org.openmuc.openiec61850.internal.mms.asn1.DeleteNamedVariableListRequest.ListOfVariableListName;
import org.openmuc.openiec61850.internal.mms.asn1.DeleteNamedVariableListResponse; import org.openmuc.openiec61850.internal.mms.asn1.DeleteNamedVariableListResponse;
import org.openmuc.openiec61850.internal.mms.asn1.FileDirectoryRequest;
import org.openmuc.openiec61850.internal.mms.asn1.FileName;
import org.openmuc.openiec61850.internal.mms.asn1.GetNameListRequest; import org.openmuc.openiec61850.internal.mms.asn1.GetNameListRequest;
import org.openmuc.openiec61850.internal.mms.asn1.GetNameListRequest.ObjectScope; import org.openmuc.openiec61850.internal.mms.asn1.GetNameListRequest.ObjectScope;
import org.openmuc.openiec61850.internal.mms.asn1.GetNameListResponse; import org.openmuc.openiec61850.internal.mms.asn1.GetNameListResponse;
@ -901,6 +905,28 @@ public final class ClientAssociation {
decodeGetDataValuesResponse(confirmedServiceResponse, modelNode); decodeGetDataValuesResponse(confirmedServiceResponse, modelNode);
} }
public void getFileDirectory(String directoryName) throws ServiceError, IOException {
System.out.println("getFileDirectory");
FileDirectoryRequest fileDirectoryRequest = new FileDirectoryRequest();
BerGraphicString berGraphicString = new BerGraphicString(directoryName.getBytes());
FileName fileSpecifcation = new FileName();
fileSpecifcation.getBerGraphicString().add(berGraphicString);
fileDirectoryRequest.setFileSpecification(fileSpecifcation);
ConfirmedServiceRequest confirmedServiceRequest = new ConfirmedServiceRequest();
confirmedServiceRequest.setFileDirectory(fileDirectoryRequest);
System.out.println("Create file directory request");
ConfirmedServiceResponse confirmedServiceResponse = encodeWriteReadDecode(confirmedServiceRequest);
}
/** /**
* Will update all data inside the model except for control variables (those that have FC=CO). Control variables are * Will update all data inside the model except for control variables (those that have FC=CO). Control variables are
* not meant to be read. Update is done by calling getDataValues on the FCDOs below the Logical Nodes. * not meant to be read. Update is done by calling getDataValues on the FCDOs below the Logical Nodes.

Loading…
Cancel
Save