| java.lang.Object | |
| ↳ | com.google.gdata.data.ExtensionProfile |
Specifies a complete extension profile for an extended GData schema. A profile is a set of allowed extensions for each type together with additional properties.
For example, Calendar might allow <gd:who> within <atom:feed>, and <gd:when>, <gd:who>, and <gd:where> within <atom:entry>.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ExtensionProfile.ExtensionPointHandler | Reads the ExtensionPoint XML format | ||||||||||
| ExtensionProfile.Handler | Reads the ExtensionProfile XML format. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| additionalNamespaces | Additional namespaces. | ||||||||||
| allowsArbitraryXml | When true, indicates that arbitrary XML is acceptable on any
ExtensionPoint when parsing using this profile. |
||||||||||
| declared | Set of previously declared Kind.Adaptor classes. | ||||||||||
| entryLinkProfile | Nested entry link profile. | ||||||||||
| feedLinkProfile | Nested feed link profile. | ||||||||||
| isAutoExtending | Profile supports auto-extension declaration | ||||||||||
| nsDecls | Namespace declarations cache. | ||||||||||
| profile | Internal storage for the profile. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds the extension declarations associated with an
Kind.Adaptor
instance, if the declaring class has not already added to this
profile. | |||||||||||
Returns whether foreign XML elements will be preserved within any
ExtensionPoint. | |||||||||||
Specifies that type
extendedType can contain an extension
described by extDescription. | |||||||||||
Specifies that type
extendedType can contain an extension described
by extClass, as determined by
getDefaultDescription(Class). | |||||||||||
Specifies additional top-level namespace declarations.
| |||||||||||
Specifies that type
extendedType can contain arbitrary XML. | |||||||||||
Specifies that type
extendedType can contain arbitrary XML. | |||||||||||
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseEntry subtype. The
BaseEntry class should only be used for mix-in types that
might appear in multiple entry types. Its use for all entry declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple entry types.
| |||||||||||
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseEntry subtype. The
BaseEntry class should only be used for mix-in types that
might appear in multiple entry types. Its use for all entry declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple entry types.
| |||||||||||
Specifies the type of entries nested within
<gd:entryLink>. | |||||||||||
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseFeed subtype. The
BaseFeed class should only be used for mix-in types that
might appear in multiple feed types. Its use for all feed declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple feed types.
| |||||||||||
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseFeed subtype. The
BaseFeed class should only be used for mix-in types that
might appear in multiple feed types. Its use for all feed declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple feed types.
| |||||||||||
Specifies the type of feeds nested within
<gd:feedLink>. | |||||||||||
Generates XML in the external config format.
| |||||||||||
Retrieves the type of entries nested within
<gd:entryLink>. | |||||||||||
Retrieves the type of feeds nested within
<gd:feedLink>. | |||||||||||
Retrieves an extension manifest for a specific class (or one of
its superclasses) or
null if not specified. | |||||||||||
Retrieves a collection of all namespaces used by this profile.
| |||||||||||
Returns whether the given extended type has already been declared.
| |||||||||||
Parses XML in the ExtensionProfile format.
| |||||||||||
Configures the extension profile to specify whether any foreign XML
elements found when parsing within an
ExtensionPoint should
be preserved. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
When true, indicates that arbitrary XML is acceptable on any
ExtensionPoint when parsing using this profile. The default
value is true to provide compliance with sections 6.3 of
RFC4287 (Atom Syntax) and section 6.2 of the AtomPub spec.
Set of previously declared Kind.Adaptor classes.
Profile supports auto-extension declaration
Adds the extension declarations associated with an Kind.Adaptor
instance, if the declaring class has not already added to this
profile. The method is optimized to reduce the overhead of declaring
the same adaptor type multiple times within the same profile.
| adaptor |
|---|
Returns whether foreign XML elements will be preserved within any
ExtensionPoint.
true if foreign XML elements are preserved, false
otherwise.
Specifies that type extendedType can contain an extension
described by extDescription.
| extendedType | |
|---|---|
| extDescription |
Specifies that type extendedType can contain an extension described
by extClass, as determined by
getDefaultDescription(Class).
| extendedType | |
|---|---|
| extClass |
Specifies additional top-level namespace declarations.
| ns |
|---|
Specifies that type extendedType can contain arbitrary XML.
| extendedType | The type being declared for |
|---|
Specifies that type extendedType can contain arbitrary XML.
| extendedType | The type being declared for |
|---|---|
| mixedContent | If true, permit mixed content in the arbitrary XML. |
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseEntry subtype. The
BaseEntry class should only be used for mix-in types that
might appear in multiple entry types. Its use for all entry declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple entry types.
Declares that extClass defines an entry extension.
| extClass |
|---|
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseEntry subtype. The
BaseEntry class should only be used for mix-in types that
might appear in multiple entry types. Its use for all entry declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple entry types.
Declares that extDesc defines an entry extension.
| extDesc |
|---|
Specifies the type of entries nested within <gd:entryLink>.
| profile |
|---|
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseFeed subtype. The
BaseFeed class should only be used for mix-in types that
might appear in multiple feed types. Its use for all feed declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple feed types.
Declares that extDesc defines a feed extension.
| extDesc |
|---|
This method is deprecated.
Calls to this API should be replaced with calls to
declare(Class, ExtensionDescription) where
the first argument is a specific BaseFeed subtype. The
BaseFeed class should only be used for mix-in types that
might appear in multiple feed types. Its use for all feed declarations
can result in conflicts when mutiple feed types are declared into a
single extension profile, a common practice in client library service
initialization for services that return multiple feed types.
Declares that extClass defines a feed extension.
| extClass |
|---|
Specifies the type of feeds nested within <gd:feedLink>.
| profile |
|---|
Generates XML in the external config format.
| w | Output writer. |
|---|---|
| extProfile | Extension profile. |
| IOException |
|---|
Retrieves the type of entries nested within <gd:entryLink>.
Retrieves the type of feeds nested within <gd:feedLink>.
Retrieves an extension manifest for a specific class (or one of
its superclasses) or null if not specified.
| extendedType |
|---|
Retrieves a collection of all namespaces used by this profile.
Returns whether the given extended type has already been declared. Note
that unlike getManifest(Class), it does not check the super
classes.
| extendedType |
|---|
Parses XML in the ExtensionProfile format.
| configProfile | Extension profile description configuration extensions. |
|---|---|
| classLoader | ClassLoader to load extension classes |
| stream | InputStream from which to read the description |
| IOException | |
|---|---|
| ParseException |
Configures the extension profile to specify whether any foreign XML
elements found when parsing within an ExtensionPoint should
be preserved. If false, the presence of foreign XML will result
in parsing errors. Arbitrary XML support is enabled by default in a
newly created profile.
| v | true to enable foreign XML preservation, false
otherwise.
#see ExtensionPoint.getXmlBlob()
|
|---|
| v |
|---|