package org.hxzon.asn1.mms.choice;
import org.hxzon.asn1.core.parse.BerInputStream;
import org.hxzon.asn1.core.parse.Tag;
import org.hxzon.asn1.core.parse.ext.Asn1Utils;
import org.hxzon.asn1.core.type.base.BerNode;
import org.hxzon.asn1.core.type.ext.BerChoice;
import org.hxzon.asn1.mms.common.ObjectClass;
public class ExtendedObjectClass extends BerChoice {
public ExtendedObjectClass() {
setId("extended object class");
setName("extended object class");
}
// GetNameList-Request ::= SEQUENCE
// {
// extendedObjectClass [0] CHOICE
// {
// objectClass [0] IMPLICIT INTEGER
// {
// nammedVariable (0),
// scatteredAccess (1),
// namedVariableList (2),
// namedType (3),
// semaphore (4),
// eventCondition (5),
// eventAction (6),
// eventEnrollment (7),
// journal (8),
// domain (9),
// programInvocation (10),
// operatorStation (11)
// }
// },
// objectScope [1] CHOICE
// {
// vmdSpecific [0] IMPLICIT NULL,
// domainSpecific [1] IMPLICIT Identifier,
// aaSpecific [2] IMPLICIT NULL
// },
// continueAfter [2] IMPLICIT Identifier OPTIONAL
// }
// Rename-Request ::= SEQUENCE
// {
// extendedObjectClass [0] CHOICE {
// objectClass [0] IMPLICIT INTEGER
// {
// namedVariable (0),
// scatteredAccess (1),
// namedVariableList (2),
// namedType (3),
// semaphore (4),
// eventCondition (5),
// eventAction (6),
// eventEnrollment (7),
// journal (8),
// domain (9),
// programInvocation (10),
// operatorStation (11)
// }
//
// },
// currentName [1] ObjectName,
// newIdentifier [2] IMPLICIT Identifier
// }
public BerNode create(int tag, BerInputStream stream) {
switch (tag) {
case Tag.CONTEXT | 0:
return new ObjectClass().init("object class", "object class", tag, stream);
default:
return Asn1Utils.createUnknown(tag, stream);
}
}
}