|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl org.apache.ws.jaxme.xs.xml.impl.XsEDocumentationImpl
public class XsEDocumentationImpl
Implementation of xs:documentation
, as specified
by the following:
<xs:element name="documentation" id="documentation"> <xs:annotation> <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-documentation"/> </xs:annotation> <xs:complexType mixed="true"> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:any processContents="lax"/> </xs:sequence> <xs:attribute name="source" type="xs:anyURI"/> <xs:attribute ref="xml:lang"/> </xs:complexType> </xs:element>
Constructor Summary | |
---|---|
protected |
XsEDocumentationImpl(XsObject pParent)
|
Method Summary | |
---|---|
protected void |
addChild(java.lang.Object pObject)
|
void |
addText(java.lang.String pText)
|
org.xml.sax.ContentHandler |
getChildHandler(java.lang.String pQName,
java.lang.String pNamespaceURI,
java.lang.String pLocalName)
|
java.lang.Object[] |
getChilds()
Returns the array of all child objects. |
XmlLang |
getLang()
Returns the documentation elements language. |
XsAnyURI |
getSource()
Returns the URI to read for the documentations contents. |
java.lang.String |
getText()
Returns the embedded text. |
boolean |
isTextOnly()
Returns whether the documentation is simple. |
boolean |
setAttribute(java.lang.String pQName,
java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pValue)
|
void |
setLang(XmlLang pLang)
Sets the documentation elements language. |
void |
setSource(XsAnyURI pSource)
Sets the URI to read for the documentations contents. |
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl |
---|
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsObject |
---|
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate |
Constructor Detail |
---|
protected XsEDocumentationImpl(XsObject pParent)
Method Detail |
---|
protected void addChild(java.lang.Object pObject)
public void setLang(XmlLang pLang)
XsEDocumentation
Sets the documentation elements language. Defaults to null.
setLang
in interface XsEDocumentation
pLang
- The language abbreviation, for example "en".public XmlLang getLang()
XsEDocumentation
Returns the documentation elements language. Defaults to null.
getLang
in interface XsEDocumentation
public void setSource(XsAnyURI pSource)
XsEDocumentation
Sets the URI to read for the documentations contents. Defaults to null.
setSource
in interface XsEDocumentation
pSource
- Source URIpublic XsAnyURI getSource()
XsEDocumentation
Returns the URI to read for the documentations contents. Defaults to null.
getSource
in interface XsEDocumentation
public void addText(java.lang.String pText)
public java.lang.String getText()
XsEDocumentation
Returns the embedded text. The embedded text is specified as the concatenation of all text nodes. Child elements, if any, are ignored.
getText
in interface XsEDocumentation
public boolean isTextOnly()
XsEDocumentation
Returns whether the documentation is simple. In other words, whether
it consists of text only. If not, you should use XsEDocumentation.getChilds()
rather than XsEDocumentation.getText()
.
isTextOnly
in interface XsEDocumentation
public java.lang.Object[] getChilds()
XsEDocumentation
Returns the array of all child objects. Child objects may either be Strings or DOM nodes.
getChilds
in interface XsEDocumentation
public boolean setAttribute(java.lang.String pQName, java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pValue)
public org.xml.sax.ContentHandler getChildHandler(java.lang.String pQName, java.lang.String pNamespaceURI, java.lang.String pLocalName) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |