public class Person extends ExtensionPoint implements IPerson
| Modifier and Type | Class and Description |
|---|---|
class |
Person.AtomHandler
Parses XML in the Atom format.
|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
protected String |
email
Email address.
|
protected String |
name
Human-readable name.
|
protected String |
nameLang
Language of name.
|
protected String |
uri
URI associated with the person.
|
xmlBloblocalName, namespace| Constructor and Description |
|---|
Person()
Class constructor.
|
Person(String name)
Constructs a new Person instance with the specified name.
|
Person(String name,
String uri,
String email)
Constructs a new Person instance with the specified name, URI,
and email address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate(ExtensionProfile extProfile,
XmlWriter w,
XmlNamespace elementNamespace,
String elementName,
Collection<XmlWriter.Attribute> attributes)
Generates XML.
|
protected void |
generate(XmlWriter w,
ExtensionProfile p,
XmlNamespace namespace,
String localName,
List<XmlWriter.Attribute> attrs,
AttributeGenerator generator)
Generates XML.
|
void |
generateAtom(ExtensionProfile extProfile,
XmlWriter w,
String elementName)
Generates XML in the Atom format.
|
void |
generateRss(XmlWriter w,
String elementName)
Generates XML in the RSS format.
|
String |
getEmail()
Email address.
|
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
String namespace,
String localName,
Attributes attrs)
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. |
String |
getName()
Human-readable name.
|
String |
getNameLang()
Language of name
|
String |
getUri()
Uri associated with the person
|
void |
setEmail(String v) |
void |
setName(String v) |
void |
setNameLang(String v) |
void |
setUri(String v) |
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildrenconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateprotected String name
protected String nameLang
xml:lang.protected String uri
protected String email
public Person()
public Person(String name)
public void setName(String v)
public String getNameLang()
IPersongetNameLang in interface IPersonpublic void setNameLang(String v)
public String getUri()
IPersonpublic void setUri(String v)
public void setEmail(String v)
public void generate(ExtensionProfile extProfile, XmlWriter w, XmlNamespace elementNamespace, String elementName, Collection<XmlWriter.Attribute> attributes) throws IOException
Designed to be used by types that reuse the standard Atom person type.
extProfile - extension profilew - output writerelementNamespace - namespace for XML elementelementName - name of XML elementattributes - additional attributesIOExceptionprotected void generate(XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator) throws IOException
Designed to be used by ExtensionPoint types that reuse Person.
generate in class ExtensionPointw - XML writerp - extension profilenamespace - XML namespace for this extensionlocalName - XML local name for this extensionattrs - list of XML attributesgenerator - attribute generatorIOException - any I/O exceptionpublic void generateAtom(ExtensionProfile extProfile, XmlWriter w, String elementName) throws IOException
extProfile - extension profilew - output writerelementName - Atom element nameIOExceptionpublic void generateRss(XmlWriter w, String elementName) throws IOException
w - output writerelementName - RSS element nameIOExceptionpublic XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
AbstractExtensionAbstractExtension.AttributesHandler to handle
parsing the extension.getHandler in interface ExtensiongetHandler in class ExtensionPointextProfile - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributesCopyright © 2012. All Rights Reserved.