biweekly.property
Class Xml

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<Document>
          extended by biweekly.property.Xml

public class Xml
extends ValuedProperty<Document>

Used for storing properties parsed from xCal documents whose XML namespaces are not part of the xCal XML namespace.

Examples:

 //creating a new property
 Xml xml = new Xml("<company xmlns=\"http://example.com\"><ceo>John Doe</ceo><name>Acme Co</name></company>");
 
 //getting the parsed DOM
 org.w3c.dom.Document document = xml.getValue();
 

Author:
Michael Angstadt
Specification Reference:
RFC 6321 p.17-8

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
Xml(Document document)
          Creates an XML property.
Xml(Element element)
          Creates an XML property.
Xml(String xml)
          Creates an XML property.
 
Method Summary
 
Methods inherited from class biweekly.property.ValuedProperty
getValue, setValue, validate
 
Methods inherited from class biweekly.property.ICalProperty
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xml

public Xml(String xml)
    throws SAXException
Creates an XML property.

Parameters:
xml - the XML to use as the property's value
Throws:
SAXException - if the XML cannot be parsed

Xml

public Xml(Element element)
Creates an XML property.

Parameters:
element - the XML element to use as the property's value (the element is imported into an empty Document object)

Xml

public Xml(Document document)
Creates an XML property.

Parameters:
document - the XML document to use as the property's value


Copyright © 2013 Michael Angstadt. All Rights Reserved.