use of org.hl7.cql_annotations.r1.Tag in project jss by dogtagpki.
the class SafeBag method encode.
@Override
public void encode(Tag implicitTag, OutputStream ostream) throws IOException {
SEQUENCE seq = new SEQUENCE();
seq.addElement(bagType);
seq.addElement(new EXPLICIT(new Tag(0), bagContent));
if (bagAttributes != null) {
seq.addElement(bagAttributes);
}
seq.encode(implicitTag, ostream);
}
use of org.hl7.cql_annotations.r1.Tag in project jss by dogtagpki.
the class SignerInfo method encode.
@Override
public void encode(Tag tag, OutputStream ostream) throws IOException {
SEQUENCE sequence = new SEQUENCE();
sequence.addElement(version);
sequence.addElement(signerIdentifier);
sequence.addElement(digestAlgorithm);
if (signedAttributes != null) {
sequence.addElement(new Tag(0), signedAttributes);
}
sequence.addElement(digestEncryptionAlgorithm);
sequence.addElement(encryptedDigest);
if (unsignedAttributes != null) {
sequence.addElement(new Tag(1), unsignedAttributes);
}
sequence.encode(tag, ostream);
}
use of org.hl7.cql_annotations.r1.Tag in project jss by dogtagpki.
the class CertRepContent method encode.
@Override
public void encode(Tag implicitTag, OutputStream ostream) throws IOException {
SEQUENCE encoding = new SEQUENCE();
// create sequence of certificates
if (caPubs != null) {
SEQUENCE certs = new SEQUENCE();
for (int i = 0; i < caPubs.length; i++) {
certs.addElement(new ANY(SEQUENCE.TAG, caPubs[i]));
}
encoding.addElement(new Tag(1), certs);
}
encoding.addElement(response);
encoding.encode(implicitTag, ostream);
}
use of org.hl7.cql_annotations.r1.Tag in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMeta.
protected void composeMeta(Complex parent, String parentType, String name, Meta element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeElement(t, "Meta", name, element, index);
if (element.hasVersionIdElement())
composeId(t, "Meta", "versionId", element.getVersionIdElement(), -1);
if (element.hasLastUpdatedElement())
composeInstant(t, "Meta", "lastUpdated", element.getLastUpdatedElement(), -1);
for (int i = 0; i < element.getProfile().size(); i++) composeUri(t, "Meta", "profile", element.getProfile().get(i), i);
for (int i = 0; i < element.getSecurity().size(); i++) composeCoding(t, "Meta", "security", element.getSecurity().get(i), i);
for (int i = 0; i < element.getTag().size(); i++) composeCoding(t, "Meta", "tag", element.getTag().get(i), i);
}
use of org.hl7.cql_annotations.r1.Tag in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMeta.
protected void composeMeta(Complex parent, String parentType, String name, Meta element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeElement(t, "Meta", name, element, index);
if (element.hasVersionIdElement())
composeId(t, "Meta", "versionId", element.getVersionIdElement(), -1);
if (element.hasLastUpdatedElement())
composeInstant(t, "Meta", "lastUpdated", element.getLastUpdatedElement(), -1);
for (int i = 0; i < element.getProfile().size(); i++) composeUri(t, "Meta", "profile", element.getProfile().get(i), i);
for (int i = 0; i < element.getSecurity().size(); i++) composeCoding(t, "Meta", "security", element.getSecurity().get(i), i);
for (int i = 0; i < element.getTag().size(); i++) composeCoding(t, "Meta", "tag", element.getTag().get(i), i);
}
Aggregations