|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.eci.repository.helper.XMLEntityInfo
A representation of an entity (RepositoryVersionedObject
or one
of its subclasses, specifically TextDocument
) for clients. This
class only provides a representation of the entity and does not affect the
data stored in the repository (i.e. creating a new XMLEntityInfo
object does not result in a new object being created in the repository).
Objects of this class override the boolean equals(Object)
and
implement the comparable
interface. Homogeneous collections
containing objects of this class may, therefore, be searched and sorted using
the Collection.contains(Object), List.indexOf(Object),
Collections.sort(List)
methods.
Constructor Summary | |
XMLEntityInfo(int type,
java.lang.String name,
java.lang.String desc,
java.lang.String notes)
Create a new XMLEntityInfo object representing a repository entity. |
|
XMLEntityInfo(int type,
java.lang.String name,
java.lang.String desc,
java.lang.String notes,
byte[] content)
Create a new XMLEntityInfo object representing a repository object. |
|
XMLEntityInfo(int type,
java.lang.String name,
java.lang.String desc,
java.lang.String notes,
java.sql.Timestamp createdOn,
java.sql.Timestamp lastModifiedOn)
Create a new XMLEntityInfo object representing a repository object. |
|
XMLEntityInfo(int type,
java.lang.String name,
java.lang.String desc,
java.lang.String notes,
java.sql.Timestamp createdOn,
java.sql.Timestamp lastModifiedOn,
java.lang.String content)
Create a new XMLEntityInfo object representing a repository object. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Determines if this XMLEntityInfo object is equal, less than, or greater than the passed in XMLEntityInfo object. |
boolean |
equals(java.lang.Object obj)
Determines if two RepositoryFolderInfo objects are equal. |
byte[] |
getContent()
Get the entity's content as an array of bytes. |
java.lang.String |
getContentAsString()
Get the entity's content as a string using the default encoding "UTF-8". |
java.lang.String |
getContentAsString(java.lang.String encoding)
Get the entity's content as a string using specified encoding. |
java.sql.Timestamp |
getCreatedOn()
Get when the entity was created. |
java.lang.String |
getDescription()
Get the description of the repository object. |
java.sql.Timestamp |
getLastModifiedOn()
Get when the entity was last modified. |
java.lang.String |
getName()
Get the description of the repository object. |
java.lang.String |
getNotes()
Get the notes about the entity. |
int |
getType()
Get the description of the repository object. |
java.lang.String |
toString()
Returns the name of the entity represented by this object. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public XMLEntityInfo(int type, java.lang.String name, java.lang.String desc, java.lang.String notes)
type
- a int
containing the type of the entity's
content as defined in com.bea.eci.repository.RepositoryTypes
name
- a String
containing the name of the entity,
which must be unique among all TextDocument
objects in the
repository.desc
- a String
containing an optional description of
the entity, which may be null
.notes
- a String
containing optional notes about the
entity, which may be null
.public XMLEntityInfo(int type, java.lang.String name, java.lang.String desc, java.lang.String notes, java.sql.Timestamp createdOn, java.sql.Timestamp lastModifiedOn)
type
- a int
containing the type of the entity's
content as defined in com.bea.eci.repository.RepositoryTypes
name
- a String
containing the name of the entity,
which must be unique among all TextDocument
objects in the
repository.desc
- a String
containing an optional description of
the entity, which may be null
.notes
- a String
containing optional notes about the
entity, which may be null
.createdOn
- a java.sql.Timestamp
object containing a
time stamp of when the entity was created.lastModifiedOn
- a java.sql.Timestamp
object
containing a time stamp of when the entity was last modified.public XMLEntityInfo(int type, java.lang.String name, java.lang.String desc, java.lang.String notes, java.sql.Timestamp createdOn, java.sql.Timestamp lastModifiedOn, java.lang.String content)
type
- a int
containing the type of the entity's
content as defined in com.bea.eci.repository.RepositoryTypes
name
- a String
containing the name of the entity,
which must be unique among all TextDocument
objects in the
repository.desc
- a String
containing an optional description of
the entity, which may be null
.notes
- a String
containing optional notes about the
entity, which may be null
.createdOn
- a java.sql.Timestamp
object containing a
time stamp of when the entity was created.lastModifiedOn
- a java.sql.Timestamp
objectcontent
- a String
containing the entity's content.public XMLEntityInfo(int type, java.lang.String name, java.lang.String desc, java.lang.String notes, byte[] content)
type
- a int
containing the type of the entity's
content as defined in com.bea.eci.repository.RepositoryTypes
name
- a String
containing the name of the entity,
which must be unique among all TextDocument
objects in the
repository.desc
- a String
containing an optional description of
the entity, which may be null
.notes
- a String
containing optional notes about the
entity, which may be null
.content
- a byte
array containing the entity's content.Method Detail |
public int getType()
int
representing the type of the entity's
content. Values are defined in
com.bea.eci.repository.helper.Types
.public java.lang.String getName()
String
containing the name of the entity.public java.lang.String getDescription()
String
containing the description of the entity.public java.lang.String getNotes()
String
containing the notes associated with the
entity.public java.sql.Timestamp getCreatedOn()
javasql.Timestamp
containing the time stamp of
when the entity was created.public java.sql.Timestamp getLastModifiedOn()
javasql.Timestamp
containing the time stamp of
when the entity was last updated.public byte[] getContent()
byte
array containing the entity's content.public java.lang.String getContentAsString()
String
containing the entity's content.public java.lang.String getContentAsString(java.lang.String encoding) throws java.io.UnsupportedEncodingException
encoding
- the specified encoding for retrieving the data.String
containing the entity's content.public java.lang.String toString()
String
containing the name of the entity.public boolean equals(java.lang.Object obj)
obj
- the RepositoryFolderInfo object being compared to this one.true
if the objects are the same, false
if they are not.public int compareTo(java.lang.Object obj)
obj
- the XMLEntityInfo object that this XMLEntityInfo object is
compared to.
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |