public class

ProfileEntry

extends BaseHealthEntry<E extends BaseHealthEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.health.BaseHealthEntry<E extends com.google.gdata.data.health.BaseHealthEntry>
           ↳ com.google.gdata.data.health.ProfileEntry

Class Overview

Describes a profile entry.

Summary

Constants
String KIND Profile kind kind term value.
Fields
public static final Category CATEGORY Profile kind kind category.
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
ProfileEntry()
Default mutable constructor.
ProfileEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
ContinuityOfCareRecord getContinuityOfCareRecord()
Returns the continuity of care record.
ProfileMetaData getProfileMetaData()
Returns the profile meta data.
boolean hasContinuityOfCareRecord()
Returns whether it has the continuity of care record.
boolean hasProfileMetaData()
Returns whether it has the profile meta data.
void setContinuityOfCareRecord(ContinuityOfCareRecord continuityOfCareRecord)
Sets the continuity of care record.
void setProfileMetaData(ProfileMetaData profileMetaData)
Sets the profile meta data.
String toString()
Protected Methods
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.health.BaseHealthEntry
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Constants

public static final String KIND

Profile kind kind term value.

Constant Value: "http://schemas.google.com/health/kinds#profile"

Fields

public static final Category CATEGORY

Profile kind kind category.

Public Constructors

public ProfileEntry ()

Default mutable constructor.

public ProfileEntry (BaseEntry<?> sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.

Parameters
sourceEntry Source entry

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public ContinuityOfCareRecord getContinuityOfCareRecord ()

Returns the continuity of care record.

Returns
  • continuity of care record

public ProfileMetaData getProfileMetaData ()

Returns the profile meta data.

Returns
  • profile meta data

public boolean hasContinuityOfCareRecord ()

Returns whether it has the continuity of care record.

Returns
  • whether it has the continuity of care record

public boolean hasProfileMetaData ()

Returns whether it has the profile meta data.

Returns
  • whether it has the profile meta data

public void setContinuityOfCareRecord (ContinuityOfCareRecord continuityOfCareRecord)

Sets the continuity of care record.

Parameters
continuityOfCareRecord Continuity of care record or null to reset

public void setProfileMetaData (ProfileMetaData profileMetaData)

Sets the profile meta data.

Parameters
profileMetaData Profile meta data or null to reset

public String toString ()

Protected Methods

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.