public void AddContent(IObjectContent content) { try { _contents.Add(content); } catch (Exception) { throw new System.Exception("No List<Content>"); } }
public ObjectDatastreamImpl(string dsId, string label, string MIMEType, string formatURI, string[] altIds, string checksum, string state, string controlGroup, bool versionable, int size, string contentURL, string xmlContent, byte[] dsContent) { this.dsId = dsId; this.label = label; this.mimeType = MIMEType; this.formatURI = formatURI; this.altIds = altIds; this.checksum = checksum; this.state = state; this.controlGroup = controlGroup; this.versionable = versionable; this.size = size; this.contentURL = contentURL; this.dsContent = dsContent; if (controlGroup.Equals(INTERNAL_XML_METADATA)) { this.xmlContent = xmlContent; content = new InternalXMLObjectContent(this.xmlContent); } else if (controlGroup.Equals(MANAGED_CONTENT)) { if (dsContent != null) { content = new ManagedObjectContent(dsContent); } else { content = new ManagedObjectContent(this.contentURL); } } else if (controlGroup.Equals(EXTERNAL_REF_CONTENT)) { content = new ExternalReferencedObjectContent(this.contentURL); } else if (controlGroup.Equals(REDIRECTED_REF_CONTENT)) { content = new RedirectObjectContent(this.contentURL); } }
public ScanRegion(ulong Offset, ulong Size, IObjectContent Content) { this.Offset = Offset; this.Size = Size; this.Content = Content; }