public interface IContentTypeSettings
This interface is not intended to be implemented by clients.
IContentType,
IContentType.getSettings(IScopeContext)| Modifier and Type | Field and Description |
|---|---|
static int |
FILE_EXTENSION_SPEC
File spec type constant, indicating a file extension specification.
|
static int |
FILE_NAME_SPEC
File spec type constant, indicating a file name specification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFileSpec(String fileSpec,
int type)
Adds a user-defined file specification to the corresponding content type.
|
String |
getDefaultCharset()
Returns the default charset for the corresponding content type if
it has been set, or
null otherwise. |
String[] |
getFileSpecs(int type)
Returns the file specifications for the corresponding content type.
|
String |
getId()
Returns the corresponding content type's unique identifier.
|
void |
removeFileSpec(String fileSpec,
int type)
Removes a user-defined file specification from the corresponding content type.
|
void |
setDefaultCharset(String userCharset)
Sets the default charset for the corresponding content type.
|
static final int FILE_EXTENSION_SPEC
static final int FILE_NAME_SPEC
void addFileSpec(String fileSpec, int type) throws CoreException
fileSpec - the file specificationtype - the type of the file specification. One of
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC.IllegalArgumentException - if the type bit mask is
incorrectCoreException - if this method fails. Reasons include:
FILE_NAME_SPEC,
FILE_EXTENSION_SPECString getDefaultCharset()
null otherwise.nullString[] getFileSpecs(int type)
type - a bit-wise or of file specification type constants. Valid
flags are one of FILE_EXTENSION_SPEC or
FILE_NAME_SPECFILE_NAME_SPEC,
FILE_EXTENSION_SPECString getId()
void removeFileSpec(String fileSpec, int type) throws CoreException
fileSpec - the file specificationtype - the type of the file specification. One of
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC.IllegalArgumentException - if the type bit mask is
incorrectCoreException - if this method fails. Reasons include:
FILE_NAME_SPEC,
FILE_EXTENSION_SPECvoid setDefaultCharset(String userCharset) throws CoreException
null is provided, restores the pre-defined default charset.userCharset - the new charset for the content type, or
nullCoreException - if this method fails. Reasons include:
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.