com.melloware.jspiff.jaxp
Class XspfExtension

java.lang.Object
  extended by com.melloware.jspiff.jaxp.XspfExtension
All Implemented Interfaces:
Serializable, Cloneable

public class XspfExtension
extends Object
implements Serializable, Cloneable

XspfExtension is generated from xspf.rng by Relaxer. This class is derived from:

 <element name="extension">
             <attribute name="application">
                 <data type="anyURI"/>
             </attribute>

             <zeroOrMore>
                 <choice>
                     <element>
                         <anyName/>
                         <ref name="anything"/>
                     </element>
                     <text/>
                 </choice>
             </zeroOrMore>
         </element>

Version:
xspf.rng (Wed Sep 27 17:36:25 EDT 2006)
Author:
Relaxer 1.1b (http://www.relaxer.org), Emil A. Lefkof III
See Also:
Serialized Form

Constructor Summary
XspfExtension()
          Creates a XspfExtension.
XspfExtension(Document doc)
          Creates a XspfExtension by the Document doc.
XspfExtension(Element element)
          Creates a XspfExtension by the Element element.
XspfExtension(File file)
          Creates a XspfExtension by the File file.
XspfExtension(InputSource is)
          Creates a XspfExtension by the InputSource is.
XspfExtension(InputStream in)
          Creates a XspfExtension by the InputStream in.
XspfExtension(Reader reader)
          Creates a XspfExtension by the Reader reader.
XspfExtension(RStack stack)
          Creates a XspfExtension by the Stack stack that contains Elements.
XspfExtension(String uri)
          Creates a XspfExtension by the String representation of URI uri.
XspfExtension(URL url)
          Creates a XspfExtension by the URL url.
XspfExtension(XspfExtension source)
          Creates a XspfExtension.
 
Method Summary
 void addContent(int index, IXspfExtensionMixed content)
          Adds the IXspfExtensionMixed property content by index.
 void addContent(IXspfExtensionMixed content)
          Adds the IXspfExtensionMixed property content.
 void addContent(IXspfExtensionMixed[] content)
          Adds the IXspfExtensionMixed property content.
 void addContent(Node value)
          Adds a mixed content by org.w3c.dom.Node.
 void addContent(String value)
          Adds a mixed content by String.
 void addContentByString(String value)
          Adds a mixed content by String.
 void clearContent()
          Clear the IXspfExtensionMixed property content.
 Object clone()
           
 String getApplication()
          Gets the String property application.
 String getApplicationAsString()
          Gets the property value as String.
 IXspfExtensionMixed[] getContent()
          Gets the IXspfExtensionMixed property content.
 IXspfExtensionMixed getContent(int index)
          Gets the IXspfExtensionMixed property content by index.
static boolean isMatch(Element element)
          Tests if a Element element is valid for the XspfExtension.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfExtension.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfExtension.
 Document makeDocument()
          Creates a DOM document representation of the object.
 void makeElement(Node parent)
          Creates a DOM representation of the object.
 void makeTextAttribute(PrintWriter buffer)
          Makes an XML text representation.
 void makeTextAttribute(StringBuffer buffer)
          Makes an XML text representation.
 void makeTextAttribute(Writer buffer)
          Makes an XML text representation.
 String makeTextDocument()
          Makes an XML text representation.
 void makeTextElement(PrintWriter buffer)
          Makes an XML text representation.
 void makeTextElement(StringBuffer buffer)
          Makes an XML text representation.
 void makeTextElement(Writer buffer)
          Makes an XML text representation.
 void removeContent(int index)
          Remove the IXspfExtensionMixed property content by index.
 void removeContent(IXspfExtensionMixed content)
          Remove the IXspfExtensionMixed property content by object.
 void setApplication(String application)
          Sets the String property application.
 void setApplicationByString(String string)
          Sets the property value by String.
 void setContent(int index, IXspfExtensionMixed content)
          Sets the IXspfExtensionMixed property content by index.
 void setContent(IXspfExtensionMixed content)
          Sets the IXspfExtensionMixed property content.
 void setContent(IXspfExtensionMixed[] content)
          Sets the IXspfExtensionMixed property content.
 void setContent(Node value)
          Sets a mixed content by org.w3c.dom.Node.
 void setContent(String value)
          Sets a mixed content by String.
 void setContentByString(String value)
          Sets a mixed content by String.
 void setup(Document doc)
          Initializes the XspfExtension by the Document doc.
 void setup(Element element)
          Initializes the XspfExtension by the Element element.
 void setup(File file)
          Initializes the XspfExtension by the File file.
 void setup(InputSource is)
          Initializes the XspfExtension by the InputSource is.
 void setup(InputStream in)
          Initializes the XspfExtension by the InputStream in.
 void setup(Reader reader)
          Initializes the XspfExtension by the Reader reader.
 void setup(RStack stack)
          Initializes the XspfExtension by the Stack stack that contains Elements.
 void setup(String uri)
          Initializes the XspfExtension by the String representation of URI uri.
 void setup(URL url)
          Initializes the XspfExtension by the URL url.
 void setup(XspfExtension source)
          Initializes the XspfExtension by the XspfExtension source.
 int sizeContent()
          Gets number of the IXspfExtensionMixed property content.
 String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XspfExtension

public XspfExtension()
Creates a XspfExtension.


XspfExtension

public XspfExtension(XspfExtension source)
Creates a XspfExtension.

Parameters:
source -

XspfExtension

public XspfExtension(RStack stack)
Creates a XspfExtension by the Stack stack that contains Elements. This constructor is supposed to be used internally by the Relaxer system.

Parameters:
stack -

XspfExtension

public XspfExtension(Document doc)
Creates a XspfExtension by the Document doc.

Parameters:
doc -

XspfExtension

public XspfExtension(Element element)
Creates a XspfExtension by the Element element.

Parameters:
element -

XspfExtension

public XspfExtension(File file)
              throws IOException,
                     SAXException,
                     ParserConfigurationException
Creates a XspfExtension by the File file.

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

XspfExtension

public XspfExtension(String uri)
              throws IOException,
                     SAXException,
                     ParserConfigurationException
Creates a XspfExtension by the String representation of URI uri.

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

XspfExtension

public XspfExtension(URL url)
              throws IOException,
                     SAXException,
                     ParserConfigurationException
Creates a XspfExtension by the URL url.

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

XspfExtension

public XspfExtension(InputStream in)
              throws IOException,
                     SAXException,
                     ParserConfigurationException
Creates a XspfExtension by the InputStream in.

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

XspfExtension

public XspfExtension(InputSource is)
              throws IOException,
                     SAXException,
                     ParserConfigurationException
Creates a XspfExtension by the InputSource is.

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

XspfExtension

public XspfExtension(Reader reader)
              throws IOException,
                     SAXException,
                     ParserConfigurationException
Creates a XspfExtension by the Reader reader.

Parameters:
reader -
Throws:
IOException
SAXException
ParserConfigurationException
Method Detail

isMatch

public static boolean isMatch(Element element)
Tests if a Element element is valid for the XspfExtension.

Parameters:
element -
Returns:
boolean

isMatch

public static boolean isMatch(RStack stack)
Tests if elements contained in a Stack stack is valid for the XspfExtension. This mehtod is supposed to be used internally by the Relaxer system.

Parameters:
stack -
Returns:
boolean

isMatchHungry

public static boolean isMatchHungry(RStack stack)
Tests if elements contained in a Stack stack is valid for the XspfExtension. This method consumes the stack contents during matching operation. This mehtod is supposed to be used internally by the Relaxer system.

Parameters:
stack -
Returns:
boolean

getApplication

public String getApplication()
Gets the String property application.

Returns:
String

getApplicationAsString

public String getApplicationAsString()
Gets the property value as String.

Returns:
String

getContent

public IXspfExtensionMixed[] getContent()
Gets the IXspfExtensionMixed property content.

Returns:
IXspfExtensionMixed[]

getContent

public IXspfExtensionMixed getContent(int index)
Gets the IXspfExtensionMixed property content by index.

Parameters:
index -
Returns:
IXspfExtensionMixed

setApplication

public void setApplication(String application)
Sets the String property application.

Parameters:
application -

setApplicationByString

public void setApplicationByString(String string)
Sets the property value by String.

Parameters:
string -

setContent

public void setContent(String value)
Sets a mixed content by String.

Parameters:
value -

setContent

public void setContent(Node value)
Sets a mixed content by org.w3c.dom.Node.

Parameters:
value -

setContent

public void setContent(IXspfExtensionMixed[] content)
Sets the IXspfExtensionMixed property content.

Parameters:
content -

setContent

public void setContent(IXspfExtensionMixed content)
Sets the IXspfExtensionMixed property content.

Parameters:
content -

setContent

public void setContent(int index,
                       IXspfExtensionMixed content)
Sets the IXspfExtensionMixed property content by index.

Parameters:
index -
content -

setContentByString

public void setContentByString(String value)
Sets a mixed content by String.

Parameters:
value -

addContent

public void addContent(String value)
Adds a mixed content by String.

Parameters:
value -

addContent

public void addContent(Node value)
Adds a mixed content by org.w3c.dom.Node.

Parameters:
value -

addContent

public void addContent(IXspfExtensionMixed content)
Adds the IXspfExtensionMixed property content.

Parameters:
content -

addContent

public void addContent(IXspfExtensionMixed[] content)
Adds the IXspfExtensionMixed property content.

Parameters:
content -

addContent

public void addContent(int index,
                       IXspfExtensionMixed content)
Adds the IXspfExtensionMixed property content by index.

Parameters:
index -
content -

addContentByString

public void addContentByString(String value)
Adds a mixed content by String.

Parameters:
value -

clearContent

public void clearContent()
Clear the IXspfExtensionMixed property content.


clone

public Object clone()
Overrides:
clone in class Object
Returns:
Object

makeDocument

public Document makeDocument()
                      throws ParserConfigurationException
Creates a DOM document representation of the object.

Returns:
Document
Throws:
ParserConfigurationException

makeElement

public void makeElement(Node parent)
Creates a DOM representation of the object. Result is appended to the Node parent.

Parameters:
parent -

makeTextAttribute

public void makeTextAttribute(StringBuffer buffer)
Makes an XML text representation.

Parameters:
buffer -

makeTextAttribute

public void makeTextAttribute(Writer buffer)
                       throws IOException
Makes an XML text representation.

Parameters:
buffer -
Throws:
IOException

makeTextAttribute

public void makeTextAttribute(PrintWriter buffer)
Makes an XML text representation.

Parameters:
buffer -

makeTextDocument

public String makeTextDocument()
Makes an XML text representation.

Returns:
String

makeTextElement

public void makeTextElement(StringBuffer buffer)
Makes an XML text representation.

Parameters:
buffer -

makeTextElement

public void makeTextElement(Writer buffer)
                     throws IOException
Makes an XML text representation.

Parameters:
buffer -
Throws:
IOException

makeTextElement

public void makeTextElement(PrintWriter buffer)
Makes an XML text representation.

Parameters:
buffer -

removeContent

public void removeContent(int index)
Remove the IXspfExtensionMixed property content by index.

Parameters:
index -

removeContent

public void removeContent(IXspfExtensionMixed content)
Remove the IXspfExtensionMixed property content by object.

Parameters:
content -

setup

public void setup(XspfExtension source)
Initializes the XspfExtension by the XspfExtension source.

Parameters:
source -

setup

public void setup(Document doc)
Initializes the XspfExtension by the Document doc.

Parameters:
doc -

setup

public void setup(Element element)
Initializes the XspfExtension by the Element element.

Parameters:
element -

setup

public void setup(RStack stack)
Initializes the XspfExtension by the Stack stack that contains Elements. This constructor is supposed to be used internally by the Relaxer system.

Parameters:
stack -

setup

public void setup(File file)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfExtension by the File file.

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(String uri)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfExtension by the String representation of URI uri.

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(URL url)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfExtension by the URL url.

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(InputStream in)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfExtension by the InputStream in.

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(InputSource is)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfExtension by the InputSource is.

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(Reader reader)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfExtension by the Reader reader.

Parameters:
reader -
Throws:
IOException
SAXException
ParserConfigurationException

sizeContent

public int sizeContent()
Gets number of the IXspfExtensionMixed property content.

Returns:
int

toString

public String toString()
Returns a String representation of this object. While this method informs as XML format representaion, it's purpose is just information, not making a rigid XML documentation.

Overrides:
toString in class Object
Returns:
String


Copyright © 1999-2006 Melloware Inc. All Rights Reserved.