| Modifier and Type | Class and Description |
|---|---|
class |
ElementKey<D,E extends Element>
A key referring to a particular element.
|
interface |
ElementMetadata<D,E extends Element>
Element metadata.
|
class |
ForwardingElementMetadata<D,E extends Element>
The ForwardingElementMetadata abstract class provides a simple delegating
ElementMetadata implementation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
XmlBlob
Arbitrary self-contained block of XML.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Element> |
Element.adapt(ElementKey<?,T> key,
Element source)
Adapts an element based on a different key.
|
<D,E extends Element> |
MetadataRegistry.adapt(ElementKey<D,E> source,
String kind,
ElementKey<? extends D,? extends E> adaptation)
Adapts from the source type to the adaptation type on the given kind.
|
<D,E extends Element> |
Schema.bind(ElementKey<?,?> parent,
ElementKey<D,E> child)
Returns the metadata for the child element in the parent.
|
<D,E extends Element> |
Schema.bind(ElementKey<?,?> parent,
ElementKey<D,E> child,
MetadataContext context)
Returns the metadata for the child element in the parent, bound to the
context.
|
<D,E extends Element> |
Schema.bind(ElementKey<D,E> key)
Returns the default metadata for the element key.
|
<D,E extends Element> |
Schema.bind(ElementKey<D,E> key,
MetadataContext context)
Returns the metadata for the element key bound to the context.
|
<K,L extends Element> |
ForwardingElementMetadata.bindElement(ElementKey<K,L> key) |
<K,L extends Element> |
ElementMetadata.bindElement(ElementKey<K,L> key)
Binds the child element metadata associated with a particular key.
|
static <E extends Element> |
Element.createElement(ElementKey<?,E> key)
Helper method that constructs a new
Element instance of the type
defined by the type parameter E. |
static <E extends Element> |
Element.createElement(ElementKey<?,E> key,
Element source)
Helper method that constructs a new
Element instance of the type
defined by the type parameter E. |
<D,T extends Element> |
Element.getElement(ElementKey<D,T> childKey)
Get child element matching the specified key.
|
<T extends Element> |
Element.getElements(ElementKey<?,T> key)
Get child elements matching the specified key.
|
<T extends Element> |
Element.getElementSet(ElementKey<?,T> key)
Get child elements matching the specified key.
|
static <T,V extends Element> |
ElementKey.of(QName id,
Class<? extends T> datatype,
Class<? extends V> elementType)
Construct an element key with the given id, datatype, and element type.
|
static <V extends Element> |
ElementKey.of(QName id,
Class<? extends V> elementType)
Construct an element key with the given id and element type, but with
a
Void datatype. |
| Modifier and Type | Method and Description |
|---|---|
protected Element |
Element.adapt(Element source,
ElementMetadata<?,?> sourceMeta,
String kind)
Adapts an element based on a key.
|
Element |
Element.addElement(Element element)
Add a child element, using the key of the child element as the key into
this element's children.
|
Element |
Element.addElement(ElementKey<?,?> key,
Element element)
Add a child element with the given key.
|
Element |
Element.addElement(QName id,
Element element)
Add a child element with the given ID.
|
Element |
ElementMetadata.SingleVirtualElement.generateSingle(Element parent,
ElementMetadata<?,?> parentMetadata,
ElementMetadata<?,?> metadata)
Creates a single virtual element from the parent element.
|
Element |
Element.getElement(QName id)
Get a child element matching the specified qualified name.
|
Element |
Element.lock()
Locks this element.
|
protected Element |
Element.narrow(ElementMetadata<?,?> metadata,
ValidationContext vc)
Narrow down element's type to the most specific one possible.
|
Element |
Element.removeElement(ElementKey<?,?> childKey)
Remove child element(s) of a given name.
|
Element |
Element.removeElement(QName id)
Remove child element(s) of a given name.
|
Element |
Element.resolve(ElementMetadata<?,?> metadata)
Resolve the state of all elements in the tree, rooted at this
element, against the metadata.
|
Element |
Element.resolve(ElementMetadata<?,?> metadata,
ValidationContext vc)
Resolve this element's state against the metadata.
|
Element |
Element.setAttributeValue(AttributeKey<?> key,
Object attrValue)
Add attribute by value.
|
Element |
Element.setAttributeValue(QName id,
Object attrValue)
Add attribute by id and value.
|
Element |
Element.setElement(Element element)
Sets a child element to the given value.
|
Element |
Element.setElement(ElementKey<?,?> key,
Element element)
Sets the value of the child element(s) with the
key. |
Element |
Element.setElement(QName id,
Element element)
Sets the value of the child element(s) with the given id.
|
Element |
Element.setTextValue(Object newValue)
Sets the value of the element and returns the element to allow chaining.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends Element> |
ElementMetadata.MultipleVirtualElement.generateMultiple(Element parent,
ElementMetadata<?,?> parentMetadata,
ElementMetadata<?,?> metadata)
Creates a collection of virtual elements from the parent element.
|
Iterator<Element> |
Element.getElementIterator()
Returns an iterator over all child elements of this element.
|
Iterator<Element> |
Element.getElementIterator(ElementMetadata<?,?> metadata)
Returns an iterator over all child elements with a well-defined iteration
order based on this metadata.
|
List<Element> |
Element.getElements(QName id)
Returns an immutable list of elements matching the given id.
|
Set<Element> |
Element.getElementSet(QName id)
Get child elements matching the specified id.
|
Map<Element,List<ErrorContent>> |
ValidationContext.getErrors() |
static ElementKey<String,Element> |
ElementKey.of(QName id)
Return a default element key using a string datatype and
Element as the element type. |
| Modifier and Type | Method and Description |
|---|---|
protected Element |
Element.adapt(Element source,
ElementMetadata<?,?> sourceMeta,
String kind)
Adapts an element based on a key.
|
protected <T extends Element> |
Element.adapt(ElementKey<?,T> key,
Element source)
Adapts an element based on a different key.
|
Element |
Element.addElement(Element element)
Add a child element, using the key of the child element as the key into
this element's children.
|
Element |
Element.addElement(ElementKey<?,?> key,
Element element)
Add a child element with the given key.
|
Element |
Element.addElement(QName id,
Element element)
Add a child element with the given ID.
|
void |
ValidationContext.addError(Element element,
ErrorContent error)
Add a validation error to list.
|
void |
ValidationContext.addError(Element element,
String error)
Add an error by error string.
|
static <E extends Element> |
Element.createElement(ElementKey<?,E> key,
Element source)
Helper method that constructs a new
Element instance of the type
defined by the type parameter E. |
Object |
MetadataValueTransform.generate(Element element,
ElementMetadata<?,?> metadata)
Runs this transformation on the given element.
|
Object |
Metadata.VirtualValue.generate(Element element,
ElementMetadata<?,?> metadata)
Generate the value of either an attribute or text content based on the
containing element and metadata.
|
Collection<? extends Element> |
ElementMetadata.MultipleVirtualElement.generateMultiple(Element parent,
ElementMetadata<?,?> parentMetadata,
ElementMetadata<?,?> metadata)
Creates a collection of virtual elements from the parent element.
|
Element |
ElementMetadata.SingleVirtualElement.generateSingle(Element parent,
ElementMetadata<?,?> parentMetadata,
ElementMetadata<?,?> metadata)
Creates a single virtual element from the parent element.
|
Object |
Metadata.generateValue(Element element,
ElementMetadata<?,?> metadata)
Generate the value of this property on the given element.
|
Object |
ForwardingElementMetadata.generateValue(Element element,
ElementMetadata<?,?> metadata) |
boolean |
ForwardingElementMetadata.isSelected(Element e) |
boolean |
ElementMetadata.isSelected(Element e)
Returns true if the element instance is selected for use in the current
operation.
|
void |
ElementMetadata.MultipleVirtualElement.parse(Element parent,
ElementMetadata<?,?> parentMetadata,
Collection<Element> elements,
ElementMetadata<?,?> metadata)
Parses the elements, possibly creating additional elements or attributes.
|
void |
ElementMetadata.SingleVirtualElement.parse(Element parent,
ElementMetadata<?,?> parentMetadata,
Element element,
ElementMetadata<?,?> metadata)
Parses the element, possibly creating additional elements or attributes.
|
void |
MetadataValueTransform.parse(Element element,
ElementMetadata<?,?> metadata,
Object value)
For parsing, we always parse directly into the first source.
|
void |
Metadata.VirtualValue.parse(Element element,
ElementMetadata<?,?> metadata,
Object value)
Parses the virtual value using the given metadata, storing it into the
element or attribute as appropriate.
|
void |
Metadata.parseValue(Element element,
ElementMetadata<?,?> metadata,
Object value)
Parses the value of this property into the given element.
|
void |
ForwardingElementMetadata.parseValue(Element element,
ElementMetadata<?,?> metadata,
Object value) |
boolean |
Element.removeElement(Element element)
Remove a single child element from this element.
|
boolean |
Element.removeElement(ElementKey<?,?> childKey,
Element element)
Remove a single child element from this element.
|
boolean |
Element.replaceElement(Element toRemove,
Element toAdd)
Replace one element with another.
|
Element |
Element.setElement(Element element)
Sets a child element to the given value.
|
Element |
Element.setElement(ElementKey<?,?> key,
Element element)
Sets the value of the child element(s) with the
key. |
Element |
Element.setElement(QName id,
Element element)
Sets the value of the child element(s) with the given id.
|
void |
ForwardingElementMetadata.validate(ValidationContext vc,
Element e) |
void |
ElementMetadata.validate(ValidationContext vc,
Element e)
Validates an element using the specified validation context and the
element validator associated with this element metadata.
|
void |
MetadataValidator.validate(ValidationContext vc,
Element e,
ElementMetadata<?,?> metadata) |
void |
ElementValidator.validate(ValidationContext vc,
Element e,
ElementMetadata<?,?> metadata)
Validate the target element using the specified validation context.
|
boolean |
ElementVisitor.visit(Element parent,
Element target,
ElementMetadata<?,?> metadata)
Called during Element tree traversal to allow the visitor instance
to process an element in the tree.
|
boolean |
CompositeElementVisitor.visit(Element parent,
Element target,
ElementMetadata<?,?> metadata) |
void |
ElementVisitor.visitComplete(Element parent,
Element target,
ElementMetadata<?,?> metadata)
The visitComplete method is called when traversal for an Element
and all of its nested children has been completed.
|
void |
CompositeElementVisitor.visitComplete(Element parent,
Element target,
ElementMetadata<?,?> metadata) |
| Modifier and Type | Method and Description |
|---|---|
static ElementKey<?,?> |
Element.getDefaultKey(Class<? extends Element> type)
Returns the default
ElementKey for an Element type. |
<V> V |
Element.getElementValue(ElementKey<V,? extends Element> key)
Convenience method to return child element's text node cast to
the specified type.
|
void |
ElementMetadata.MultipleVirtualElement.parse(Element parent,
ElementMetadata<?,?> parentMetadata,
Collection<Element> elements,
ElementMetadata<?,?> metadata)
Parses the elements, possibly creating additional elements or attributes.
|
MetadataRegistry |
MetadataRegistry.registerClass(Class<? extends Element> clazz)
Registers the metadata from an element subclass using its
"registerMetadata" method through reflection.
|
| Constructor and Description |
|---|
Element(ElementKey<?,?> elementKey,
Element source)
Copy constructor that initializes a new Element instance to be a wrapper
around another element instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Author
Author element, modifies
Person to add author QName. |
class |
Category
The Category class represents the data model for the Atom category element.
|
class |
Content
Base class for entry content.
|
class |
Contributor
Contributor element, modifies
Person to add contributor QName. |
class |
Entry
The Entry class is a base class that defines the in-memory object model for
GData entries.
|
class |
Feed
The Feed class is a base class that represents a generic GData feed object,
based primarily on the data model for an
<atom:feed> element. |
class |
Link
Class representing atom:link.
|
class |
OtherContent
Variant of
Content for entries containing miscellaneous
inlined content types. |
class |
OutOfLineContent
Variant of
Content for entries that reference external content. |
class |
Person
Base class for Atom person constructs.
|
class |
Source
The Source class represents an Atom feed source object primarily on the data
model for an
<atom:source> element. |
static class |
Source.Generator
Class representing atom:generator.
|
class |
TextContent
Variant of
Content for entries containing text. |
| Modifier and Type | Field and Description |
|---|---|
static ElementKey<String,Element> |
Person.EMAIL
The atom:email element.
|
static ElementKey<URI,Element> |
Source.ICON
atom:icon
|
static ElementKey<String,Element> |
Source.ID
The atom:id element.
|
static ElementKey<String,Element> |
Entry.ID
The atom:id child element
|
static ElementKey<Integer,Element> |
Feed.ITEMS_PER_PAGE
The opensearch:itemsPerPage element.
|
static ElementKey<URI,Element> |
Source.LOGO
atom:logo
|
static ElementKey<String,Element> |
Person.NAME
The atom:name element.
|
static ElementKey<DateTime,Element> |
Entry.PUBLISHED
The atom:published child element
|
static ElementKey<Integer,Element> |
Feed.START_INDEX
The opensearch:startIndex element.
|
static ElementKey<Integer,Element> |
Feed.TOTAL_RESULTS
The opensearch:totalResults element.
|
static ElementKey<DateTime,Element> |
Source.UPDATED
atom:updated
|
static ElementKey<DateTime,Element> |
Entry.UPDATED
The atom:updated child element
|
static ElementKey<URI,Element> |
Person.URI
The atom:uri.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
OtherContent.getXmlContent()
Gets the nested xml content of this element.
|
protected Element |
Link.narrow(ElementMetadata<?,?> meta,
ValidationContext vc) |
protected Element |
Feed.narrow(ElementMetadata<?,?> meta,
ValidationContext vc)
Narrows this feed using categories with an appropriate kind value.
|
protected Element |
Entry.narrow(ElementMetadata<?,?> metadata,
ValidationContext vc)
Narrows this entry using categories with an appropriate kind value.
|
protected Element |
Content.narrow(ElementMetadata<?,?> meta,
ValidationContext vc) |
protected Element |
Category.narrow(ElementMetadata<?,?> meta,
ValidationContext vc) |
Element |
TextContent.resolve(ElementMetadata<?,?> metadata,
ValidationContext vc)
Resolve this element's state against the metadata.
|
Element |
Feed.resolve(ElementMetadata<?,?> metadata,
ValidationContext vc) |
| Modifier and Type | Method and Description |
|---|---|
void |
OtherContent.setXmlContent(Element content)
Sets the nested xml content of this element.
|
| Constructor and Description |
|---|
Author(ElementKey<?,? extends Author> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Category(ElementKey<?,? extends Category> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Content(ElementKey<?,?> key,
Element source)
Constructs a new instance using the specified element key and the source
Element instance's data (attributes, child elements, text content). |
Contributor(ElementKey<?,? extends Contributor> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Link(ElementKey<?,? extends Link> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Person(ElementKey<?,? extends Person> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Source(ElementKey<?,? extends Source> key,
Element source)
Copy constructor that initializes a new Source instance to have identical
contents to another element, using a shared state.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Accept
Specifies a type of representation that can be POSTed to a Collection.
|
class |
Categories
Value of the app:categories tag.
|
class |
Collection
The Collection class defines the basic Java object model
representation and XML parsing/generation support for an
APP collection.
|
class |
Control
Describes an Atom publication control status.
|
class |
Draft
Value of the app:draft tag.
|
class |
Edited
Value of the app:edited tag.
|
class |
ServiceDocument
Container for service information.
|
class |
Workspace
Server-defined groups of Collections.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
Workspace.resolve(ElementMetadata<?,?> meta,
ValidationContext vc) |
Element |
Collection.resolve(ElementMetadata<?,?> metadata,
ValidationContext vc) |
| Constructor and Description |
|---|
Accept(ElementKey<String,? extends Accept> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Categories(ElementKey<?,? extends Categories> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Collection(ElementKey<?,? extends Collection> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Control(ElementKey<?,? extends Control> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Draft(ElementKey<Draft.Value,? extends Draft> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Edited(ElementKey<DateTime,? extends Edited> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
ServiceDocument(ElementKey<?,? extends ServiceDocument> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Workspace(ElementKey<?,? extends Workspace> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
| Modifier and Type | Class and Description |
|---|---|
class |
BatchId
Identifies an entry inside of a batch feed.
|
class |
BatchInterrupted
Signals that feed processing was interrupted.
|
class |
BatchOperation
Describes the batch operation to apply.
|
class |
BatchStatus
Describes server status information about how an entry was processed in a
batch operation.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
BatchId.getIdFrom(Element element)
Convenience method for getting a batchId from
an element if it's there.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AdditionalName
Person's additional (often: middle) name.
|
class |
Agent
Used in work addresses.
|
class |
AttendeeStatus
Describes the status of an event attendee.
|
class |
AttendeeType
Describes the type of an event attendee.
|
class |
City
Can be city, village, town, borough, etc.
|
class |
Comments
Describes a container of a feed link for comment entries.
|
class |
Country
The country name.
|
class |
CreateId
An ID supplied by the client on POST, assumed to be unique from the client's
perspective, and insisted to be so by the server.
|
class |
CustomProperty
Name-value pair with optional type and unit.
|
class |
Deleted
Denotes an entry has been deleted.
|
class |
Email
Describes an email address.
|
class |
EntryLink
Describes a nested entry link.
|
class |
EventEntry
Describes an event entry.
|
class |
EventFeed
Describes an event feed.
|
class |
EventStatus
Describes the base set of values for event status.
|
class |
ExtendedProperty
Stores a limited amount of custom data as an auxiliary property of the
enclosing entity.
|
class |
FamilyName
Person's family name.
|
class |
FeedLink
Describes a nested feed link.
|
class |
FormattedAddress
User-formatted, full address.
|
class |
FullName
Person's full, formatted name.
|
class |
GeoPt
GData schema extension describing a geographic location.
|
class |
GivenName
Person's given name.
|
class |
HouseName
Used in places where houses or buildings have names.
|
class |
Im
Describes an instant messaging address.
|
class |
LastModifiedBy
The user who last modified the object.
|
class |
LastViewed
The time the object was last viewed.
|
class |
MessageEntry
Extension class for manipulating entries of the Message kind.
|
class |
MessageFeed
Describes a message feed.
|
class |
Money
Describes money.
|
class |
Name
Name of a person in a structured form.
|
class |
NamePrefix
Prefix to a person's name.
|
class |
NameSuffix
Suffix to a person's name.
|
class |
Neighborhood
Neighborhood.
|
class |
Ordering
Control ordering for a set of atom entries.
|
class |
Organization
Describes an organization (like Company).
|
class |
OrgDepartment
Department in the organization.
|
class |
OrgJobDescription
Job description.
|
class |
OrgName
Name of organization.
|
class |
OrgSymbol
Organization symbol/ticker.
|
class |
OrgTitle
Position in organization.
|
class |
OriginalEvent
Describes a link to a recurring event.
|
class |
PhoneNumber
Describes a phone number.
|
class |
PoBox
P.O.
|
class |
PostalAddress
Describes a postal address.
|
class |
PostCode
Postal code.
|
class |
QuotaBytesTotal
The total amount of quota.
|
class |
QuotaBytesUsed
The amount of quota consumed by the object.
|
class |
Rating
Describes a rating.
|
class |
Recurrence
Describes an RFC 2445 recurrence rule.
|
class |
RecurrenceException
Describes an exception to a recurring event.
|
class |
RecurrenceExceptionEntry
Describes an entry used by a recurrence exception entry link.
|
class |
RecurrenceExceptionEntryLink
Describes an entry link used by a recurrence exception.
|
class |
Region
Region is state, province, county (in Ireland), Land (in Germany),
d?partement (in France), etc.
|
class |
Reminder
Describes a reminder on an event.
|
class |
ResourceId
Resource ID is the unique identifier of an entry within a given scope implied
from the entry type.
|
class |
Street
Describes a street.
|
class |
StructuredPostalAddress
Describes a structured postal address.
|
class |
Subregion
Subregion is county (US), province (in Italy), etc.
|
class |
Transparency
Describes the base set of values for event transparency.
|
class |
Visibility
Describes the base set of values for event visibility.
|
class |
When
Describes a period of time.
|
class |
Where
Describes a place (not necessarily a specific geographical location).
|
class |
Who
Describes a person associated with the containing entity.
|
| Constructor and Description |
|---|
AdditionalName(ElementKey<String,? extends AdditionalName> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Agent(ElementKey<String,? extends Agent> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
AttendeeStatus(ElementKey<?,? extends AttendeeStatus> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
AttendeeType(ElementKey<?,? extends AttendeeType> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
City(ElementKey<String,? extends City> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Comments(ElementKey<?,? extends Comments> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Country(ElementKey<String,? extends Country> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
CreateId(ElementKey<String,? extends CreateId> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
CustomProperty(ElementKey<String,? extends CustomProperty> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Deleted(ElementKey<?,? extends Deleted> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Email(ElementKey<?,? extends Email> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
EntryLink(ElementKey<?,? extends EntryLink> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
EventStatus(ElementKey<?,? extends EventStatus> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
FamilyName(ElementKey<String,? extends FamilyName> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
FeedLink(ElementKey<?,? extends FeedLink> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
FormattedAddress(ElementKey<String,? extends FormattedAddress> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
FullName(ElementKey<String,? extends FullName> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
GeoPt(ElementKey<?,? extends GeoPt> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
GivenName(ElementKey<String,? extends GivenName> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
HouseName(ElementKey<String,? extends HouseName> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Im(ElementKey<?,? extends Im> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
LastModifiedBy(ElementKey<?,? extends LastModifiedBy> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
LastViewed(ElementKey<DateTime,? extends LastViewed> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Money(ElementKey<?,? extends Money> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Name(ElementKey<?,? extends Name> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
NamePrefix(ElementKey<String,? extends NamePrefix> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
NameSuffix(ElementKey<String,? extends NameSuffix> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Neighborhood(ElementKey<String,? extends Neighborhood> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Ordering(ElementKey<?,? extends Ordering> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Organization(ElementKey<?,? extends Organization> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
OrgDepartment(ElementKey<String,? extends OrgDepartment> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
OrgJobDescription(ElementKey<String,? extends OrgJobDescription> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
OrgName(ElementKey<String,? extends OrgName> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
OrgSymbol(ElementKey<String,? extends OrgSymbol> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
OrgTitle(ElementKey<String,? extends OrgTitle> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
OriginalEvent(ElementKey<?,? extends OriginalEvent> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
PhoneNumber(ElementKey<String,? extends PhoneNumber> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
PoBox(ElementKey<String,? extends PoBox> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
PostalAddress(ElementKey<String,? extends PostalAddress> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
PostCode(ElementKey<String,? extends PostCode> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
QuotaBytesTotal(ElementKey<Long,? extends QuotaBytesTotal> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
QuotaBytesUsed(ElementKey<Long,? extends QuotaBytesUsed> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Rating(ElementKey<?,? extends Rating> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Recurrence(ElementKey<String,? extends Recurrence> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
RecurrenceException(ElementKey<?,? extends RecurrenceException> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
RecurrenceExceptionEntryLink(ElementKey<?,? extends RecurrenceExceptionEntryLink> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Region(ElementKey<String,? extends Region> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Reminder(ElementKey<?,? extends Reminder> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
ResourceId(ElementKey<String,? extends ResourceId> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Street(ElementKey<String,? extends Street> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
StructuredPostalAddress(ElementKey<?,? extends StructuredPostalAddress> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Subregion(ElementKey<String,? extends Subregion> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Transparency(ElementKey<?,? extends Transparency> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Visibility(ElementKey<?,? extends Visibility> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
When(ElementKey<?,? extends When> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Where(ElementKey<?,? extends Where> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Who(ElementKey<?,? extends Who> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
| Modifier and Type | Field and Description |
|---|---|
protected Element |
XmlHandler.element
Element being parsed.
|
protected Element |
XmlHandler.parentElement
Parent element, if non-null the element will be added to the parent after
it has been fully parsed.
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
XmlHandler.createChildElement(QName qName,
ElementMetadata<?,?> metadata)
Create a child element for the given name and metadata.
|
Element |
XmlHandler.getElement() |
Element |
XmlParser.parse(Element element) |
Element |
WireFormatParser.parse(Element element)
Parse content from a source provided to the parser at
construction time.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,XmlNamespace> |
GeneratorUtils.calculateNamespaces(Element root,
ElementMetadata<?,?> metadata)
Calculate the set of namespaces on an element.
|
protected XmlHandler |
XmlHandler.createHandler(QName qName,
Element parent,
Element child,
ElementMetadata<?,?> metadata)
Hook to allow subclasses to change the type of handler being returned.
|
protected XmlHandler |
XmlParser.createRootHandler(ValidationContext vc,
Element element,
ElementMetadata<?,?> metadata)
Create the xml handler for the root element.
|
void |
XmlGenerator.ElementGenerator.endElement(XmlWriter xw,
Element e,
ElementMetadata<?,?> metadata)
End an element, writing a close tag if needed.
|
void |
XmlGenerator.XmlElementGenerator.endElement(XmlWriter xw,
Element e,
ElementMetadata<?,?> metadata) |
void |
XmlGenerator.generate(Element element) |
void |
WireFormatGenerator.generate(Element root)
Generate wire content for tree rooted at
root. |
void |
XmlGenerator.generate(Element element,
ElementMetadata<?,?> metadata) |
protected List<XmlWriter.Attribute> |
XmlGenerator.XmlElementGenerator.getAttributes(Element e,
ElementMetadata<?,?> metadata)
Get a list of attributes for the given element.
|
protected QName |
XmlGenerator.XmlElementGenerator.getName(Element e,
ElementMetadata<?,?> metadata)
Returns the QName of an element, possibly using the given metadata for
the name if it is not
null. |
protected Collection<XmlNamespace> |
XmlGenerator.XmlElementGenerator.getNamespaces(Element parent,
Element e,
ElementMetadata<?,?> metadata)
Get a collection of namespaces for the current element and parent.
|
Element |
XmlParser.parse(Element element) |
Element |
WireFormatParser.parse(Element element)
Parse content from a source provided to the parser at
construction time.
|
boolean |
XmlGenerator.ElementGenerator.startElement(XmlWriter xw,
Element parent,
Element e,
ElementMetadata<?,?> metadata)
Start an element.
|
boolean |
XmlGenerator.XmlElementGenerator.startElement(XmlWriter xw,
Element parent,
Element e,
ElementMetadata<?,?> metadata) |
void |
XmlGenerator.ElementGenerator.textContent(XmlWriter xw,
Element e,
ElementMetadata<?,?> metadata)
Write the text content for an element.
|
void |
XmlGenerator.XmlElementGenerator.textContent(XmlWriter xw,
Element e,
ElementMetadata<?,?> metadata) |
boolean |
XmlGenerator.visit(Element parent,
Element e,
ElementMetadata<?,?> metadata) |
void |
XmlGenerator.visitComplete(Element parent,
Element e,
ElementMetadata<?,?> metadata) |
| Constructor and Description |
|---|
XmlHandler(ValidationContext vc,
Element parent,
Element element,
ElementMetadata<?,?> metadata)
Construct an xml parser that will add the element to its parent after
parsing is completed.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ElementGenerator<E extends Element>
The ElementGenerator class implements a simple {WireFormatOutputGenerator}
that can generate documents from any GDOM
Element representation. |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Element> |
ElementGenerator.of(AltFormat altFormat,
Class<E> inputType) |
Copyright © 2012. All Rights Reserved.