public class XMLObject extends ObjectType implements XMLObject
content, encoding, id, mimeType| Constructor and Description |
|---|
XMLObject()
Creates a new instance of XMLObject
|
| Modifier and Type | Method and Description |
|---|---|
List |
getContent()
Gets the value of the content property.
|
boolean |
isFeatureSupported(String string) |
void |
setContent(List content) |
getEncoding, getId, getMimeType, setEncoding, setId, setMimeTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncoding, getId, getMimeTypepublic boolean isFeatureSupported(String string)
isFeatureSupported in interface XMLStructurepublic List getContent()
ObjectType
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the content property.
For example, to add a new item, do as follows:
getContent().add(newItem);
Objects of the following type(s) are allowed in the list
Object
String
getContent in interface XMLObjectgetContent in class ObjectTypepublic void setContent(List content)
Copyright © 2005–2018 Oracle Corporation. All rights reserved.