/** Specifies the MIME Content type. */ public void setMimeType(ContentType v) { setAttributeValue(TYPE, (v == null ? null : v.getMediaType())); }
/** Specifies the MIME type. */ public void setMimeType(ContentType v) { setAttributeValue(TYPE, v.getMediaType()); }
/** Specifies the MIME type. */ public void setMimeType(ContentType v) { setAttributeValue(TYPE, v.getMediaType()); }
/** Specifies the MIME type. */ public void setMimeType(ContentType v) { setAttributeValue(TYPE, v.getMediaType()); }
/** Specifies the MIME Content type. */ public void setMimeType(ContentType v) { setAttributeValue(TYPE, (v == null ? null : v.getMediaType())); }
/** Specifies the MIME Content type. */ public void setMimeType(ContentType v) { setAttributeValue(TYPE, (v == null ? null : v.getMediaType())); }
/** * Registers the name mapping(s) for an alternate representation. * * @param format format to register name aliases for. */ private void registerFormat(AltFormat format) { nameMap.put(format.getName(), format); if (format.isSelectableByType()) { typeMap.put(format.getContentType().getMediaType(), format); } }
/** * Sets the MIME type for the content of the error message contained in this * element. * * @param contentType MIME type for the content of the error message contained * in this element or <code>null</code> to reset */ public BatchStatus setContentType(ContentType contentType) { setAttributeValue(CONTENT_TYPE, (contentType == null) ? null : new ContentType(contentType.getMediaType())); return this; }
/** * Sets the MIME type of the content of this element. * * @param contentType MIME type of the content of this element or * <code>null</code> to reset */ public BatchInterrupted setContentType(ContentType contentType) { setAttributeValue(CONTENT_TYPE, (contentType == null) ? null : new ContentType(contentType.getMediaType())); return this; }
/** * Registers the name mapping(s) for an alternate representation. * * @param format format to register name aliases for. */ private void registerFormat(AltFormat format) { nameMap.put(format.getName(), format); if (format.isSelectableByType()) { typeMap.put(format.getContentType().getMediaType(), format); } }
/** * Sets the MIME type of the content of this element. * * @param contentType MIME type of the content of this element or * <code>null</code> to reset */ public BatchInterrupted setContentType(ContentType contentType) { setAttributeValue(CONTENT_TYPE, (contentType == null) ? null : new ContentType(contentType.getMediaType())); return this; }
/** * Sets the MIME type for the content of the error message contained in this * element. * * @param contentType MIME type for the content of the error message contained * in this element or <code>null</code> to reset */ public BatchStatus setContentType(ContentType contentType) { setAttributeValue(CONTENT_TYPE, (contentType == null) ? null : new ContentType(contentType.getMediaType())); return this; }
/** * Registers the name mapping(s) for an alternate representation. * * @param format format to register name aliases for. */ private void registerFormat(AltFormat format) { nameMap.put(format.getName(), format); if (format.isSelectableByType()) { typeMap.put(format.getContentType().getMediaType(), format); } }
/** * Sets the MIME type for the content of the error message contained in this * element. * * @param contentType MIME type for the content of the error message contained * in this element or <code>null</code> to reset */ public BatchStatus setContentType(ContentType contentType) { setAttributeValue(CONTENT_TYPE, (contentType == null) ? null : new ContentType(contentType.getMediaType())); return this; }
/** * Sets the MIME type of the content of this element. * * @param contentType MIME type of the content of this element or * <code>null</code> to reset */ public BatchInterrupted setContentType(ContentType contentType) { setAttributeValue(CONTENT_TYPE, (contentType == null) ? null : new ContentType(contentType.getMediaType())); return this; }
/** @return the type of this content */ @Override public int getType() { if (getXml() != null || getXmlContent() != null) { return IContent.Type.OTHER_XML; } if (getMimeType().getMediaType().equals("text")) { return IContent.Type.OTHER_TEXT; } return IContent.Type.OTHER_BINARY; }
/** @return the type of this content */ @Override public int getType() { if (getXml() != null || getXmlContent() != null) { return IContent.Type.OTHER_XML; } if (getMimeType().getMediaType().equals("text")) { return IContent.Type.OTHER_TEXT; } return IContent.Type.OTHER_BINARY; }
/** @return the type of this content */ @Override public int getType() { if (getXml() != null || getXmlContent() != null) { return IContent.Type.OTHER_XML; } if (getMimeType().getMediaType().equals("text")) { return IContent.Type.OTHER_TEXT; } return IContent.Type.OTHER_BINARY; }
@Override public boolean startElement(XmlWriter xw, Element parent, Element e, ElementMetadata<?, ?> metadata) throws IOException { if (!(e instanceof OutOfLineContent)) { return super.startElement(xw, parent, e, metadata); } OutOfLineContent content = (OutOfLineContent) e; ContentType type = content.getMimeType(); URI src = content.getSrc(); generateEnclosure(xw, type == null ? null : type.getMediaType(), src == null ? null : src.toString(), content.getLength()); return false; }
@Override public boolean startElement(XmlWriter xw, Element parent, Element e, ElementMetadata<?, ?> metadata) throws IOException { if (!(e instanceof OutOfLineContent)) { return super.startElement(xw, parent, e, metadata); } OutOfLineContent content = (OutOfLineContent) e; ContentType type = content.getMimeType(); URI src = content.getSrc(); generateEnclosure(xw, type == null ? null : type.getMediaType(), src == null ? null : src.toString(), content.getLength()); return false; }