|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.fc.Item
wt.content.DataFormat
Populated with all the allowable mime-types and displayed FormatNames in the system. The system will not run correctly unless the initial set of this is populated. You need to be an administrator to create these objects. Note that the formatName is contrained by the DataFormatIdentity class and must be unique. You may not extend this class.
Use the newDataFormat
static factory method(s), not the
DataFormat
constructor, to construct instances of this class.
Instances must be constructed using the static factory(s), in order
to ensure proper initialization of the instance.
Supported API: true
Extendable: false
DataFormatIdentity
,
DataFormatKey
,
ContentService
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
private String |
description
|
static String |
DESCRIPTION
Label for the attribute; Descriptive string for this format. |
private static int |
DESCRIPTION_UPPER_LIMIT
|
private Vector |
extensions
|
static String |
EXTENSIONS
Label for the attribute. |
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FILE_FORMAT_ONLY
Label for the attribute; True if this mimeType is only applicable to ApplicationData objects. |
private boolean |
fileFormatOnly
|
static String |
FORMAT_NAME
Label for the attribute; The displayable format name for this object Supported API: false |
private static int |
FORMAT_NAME_UPPER_LIMIT
|
private static String |
FORMAT_RESOURCE
|
private String |
formatName
|
private boolean |
indexable
|
static String |
INDEXABLE
Label for the attribute; True if this DataFormat type is indexable by the system. |
static String |
MIME_TYPE
Label for the attribute; The MIME type for this format. |
private static int |
MIME_TYPE_UPPER_LIMIT
|
private String |
mimeType
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static String |
STANDARD_ICON_STR
Label for the attribute; A string that points to a representative icon for this format type. |
private static int |
STANDARD_ICON_STR_UPPER_LIMIT
|
private String |
standardIconStr
|
Fields inherited from class wt.fc.Item |
VERSION_40_UID, VERSION_51_UID |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
DataFormat()
|
Method Summary | |
private void |
descriptionValidate(String a_Description)
|
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
private void |
formatNameValidate(String a_FormatName)
|
String |
getBusinessType()
Deprecated. Replaced by IdentityFactory.getDispayType(object) to return a localizable equivalent of getBusinessType(). Another alternative is ((WTObject)obj).getDisplayType(). |
String |
getConceptualClassname()
Deprecated. |
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
Vector |
getExtensions()
Gets the value of the attribute: EXTENSIONS. |
String |
getFormatName()
Gets the value of the attribute: FORMAT_NAME. |
IdentificationObject |
getIdentificationObject()
Supported API: false |
String |
getIdentity()
Supported API: false |
static String |
getLocalizedFormatName(String key,
Locale locale)
Utility method to return localized value of the key |
String |
getMimeType()
Gets the value of the attribute: MIME_TYPE. |
String |
getStandardIconStr()
Gets the value of the attribute: STANDARD_ICON_STR. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Supported API: false |
protected void |
initialize(String aFormatName)
Supports initialization, following construction of an instance. |
boolean |
isFileFormatOnly()
Gets the value of the attribute: FILE_FORMAT_ONLY. |
boolean |
isIndexable()
Gets the value of the attribute: INDEXABLE. |
private void |
mimeTypeValidate(String a_MimeType)
|
static DataFormat |
newDataFormat(String aFormatName)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DataFormat thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setExtensions(Vector a_Extensions)
Sets the value of the attribute: EXTENSIONS. |
void |
setFileFormatOnly(boolean a_FileFormatOnly)
Sets the value of the attribute: FILE_FORMAT_ONLY. |
protected void |
setFormatName(String a_FormatName)
Sets the value of the attribute: FORMAT_NAME. |
void |
setIndexable(boolean a_Indexable)
Sets the value of the attribute: INDEXABLE. |
void |
setMimeType(String a_MimeType)
Sets the value of the attribute: MIME_TYPE. |
void |
setStandardIconStr(String a_StandardIconStr)
Sets the value of the attribute: STANDARD_ICON_STR. |
private void |
standardIconStrValidate(String a_StandardIconStr)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.fc.Item |
getDomainRef, isInheritedDomain, readVersion, setDomainRef, setInheritedDomain |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String FORMAT_NAME
private static int FORMAT_NAME_UPPER_LIMIT
private String formatName
public static final String MIME_TYPE
private static int MIME_TYPE_UPPER_LIMIT
private String mimeType
public static final String DESCRIPTION
private static int DESCRIPTION_UPPER_LIMIT
private String description
public static final String INDEXABLE
private boolean indexable
public static final String FILE_FORMAT_ONLY
private boolean fileFormatOnly
public static final String STANDARD_ICON_STR
private static int STANDARD_ICON_STR_UPPER_LIMIT
private String standardIconStr
public static final String EXTENSIONS
private Vector extensions
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String FORMAT_RESOURCE
Constructor Detail |
public DataFormat()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Item
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Item
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DataFormat thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Item
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Item
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getFormatName()
protected void setFormatName(String a_FormatName) throws WTPropertyVetoException
a_FormatName
-
WTPropertyVetoException
private void formatNameValidate(String a_FormatName) throws WTPropertyVetoException
a_FormatName
-
WTPropertyVetoException
public String getMimeType()
public void setMimeType(String a_MimeType) throws WTPropertyVetoException
a_MimeType
-
WTPropertyVetoException
private void mimeTypeValidate(String a_MimeType) throws WTPropertyVetoException
a_MimeType
-
WTPropertyVetoException
public String getDescription()
public void setDescription(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
private void descriptionValidate(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
public boolean isIndexable()
public void setIndexable(boolean a_Indexable) throws WTPropertyVetoException
a_Indexable
-
WTPropertyVetoException
public boolean isFileFormatOnly()
public void setFileFormatOnly(boolean a_FileFormatOnly) throws WTPropertyVetoException
a_FileFormatOnly
-
WTPropertyVetoException
public String getStandardIconStr()
public void setStandardIconStr(String a_StandardIconStr) throws WTPropertyVetoException
a_StandardIconStr
-
WTPropertyVetoException
private void standardIconStrValidate(String a_StandardIconStr) throws WTPropertyVetoException
a_StandardIconStr
-
WTPropertyVetoException
public Vector getExtensions()
public void setExtensions(Vector a_Extensions) throws WTPropertyVetoException
a_Extensions
-
WTPropertyVetoException
public String getIdentity()
getIdentity
in interface BusinessInformation
getIdentity
in class WTObject
public IdentificationObject getIdentificationObject() throws WTException
getIdentificationObject
in interface Identified
WTException
public static DataFormat newDataFormat(String aFormatName) throws WTException
aFormatName
-
WTException
protected void initialize(String aFormatName) throws WTException
aFormatName
-
WTException
public String getBusinessType()
getBusinessType
in interface BusinessInformation
public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class Item
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class Item
protected void initialize() throws WTException
Item
initialize
in class Item
WTException
public static String getLocalizedFormatName(String key, Locale locale)
key
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |