com.melloware.jspiff.jaxp
Class XspfMeta

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

public class XspfMeta
extends Object
implements Serializable, Cloneable

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

 <element name="meta">
             <attribute name="rel">
                 <data type="anyURI"/>
             </attribute>

             <text/>
         </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
XspfMeta()
          Creates a XspfMeta.
XspfMeta(Document doc)
          Creates a XspfMeta by the Document doc.
XspfMeta(Element element)
          Creates a XspfMeta by the Element element.
XspfMeta(File file)
          Creates a XspfMeta by the File file.
XspfMeta(InputSource is)
          Creates a XspfMeta by the InputSource is.
XspfMeta(InputStream in)
          Creates a XspfMeta by the InputStream in.
XspfMeta(Reader reader)
          Creates a XspfMeta by the Reader reader.
XspfMeta(RStack stack)
          Creates a XspfMeta by the Stack stack that contains Elements.
XspfMeta(String uri)
          Creates a XspfMeta by the String representation of URI uri.
XspfMeta(URL url)
          Creates a XspfMeta by the URL url.
XspfMeta(XspfMeta source)
          Creates a XspfMeta.
 
Method Summary
 Object clone()
           
 String getContent()
          Gets the String property content.
 String getContentAsString()
          Gets the property value as String.
 String getRel()
          Gets the String property rel.
 String getRelAsString()
          Gets the property value as String.
static boolean isMatch(Element element)
          Tests if a Element element is valid for the XspfMeta.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfMeta.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfMeta.
 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 setContent(String content)
          Sets the String property content.
 void setContentByString(String string)
          Sets the property value by String.
 void setRel(String rel)
          Sets the String property rel.
 void setRelByString(String string)
          Sets the property value by String.
 void setup(Document doc)
          Initializes the XspfMeta by the Document doc.
 void setup(Element element)
          Initializes the XspfMeta by the Element element.
 void setup(File file)
          Initializes the XspfMeta by the File file.
 void setup(InputSource is)
          Initializes the XspfMeta by the InputSource is.
 void setup(InputStream in)
          Initializes the XspfMeta by the InputStream in.
 void setup(Reader reader)
          Initializes the XspfMeta by the Reader reader.
 void setup(RStack stack)
          Initializes the XspfMeta by the Stack stack that contains Elements.
 void setup(String uri)
          Initializes the XspfMeta by the String representation of URI uri.
 void setup(URL url)
          Initializes the XspfMeta by the URL url.
 void setup(XspfMeta source)
          Initializes the XspfMeta by the XspfMeta source.
 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

XspfMeta

public XspfMeta()
Creates a XspfMeta.


XspfMeta

public XspfMeta(XspfMeta source)
Creates a XspfMeta.

Parameters:
source -

XspfMeta

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

Parameters:
stack -

XspfMeta

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

Parameters:
doc -

XspfMeta

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

Parameters:
element -

XspfMeta

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

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

XspfMeta

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

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

XspfMeta

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

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

XspfMeta

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

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

XspfMeta

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

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

XspfMeta

public XspfMeta(Reader reader)
         throws IOException,
                SAXException,
                ParserConfigurationException
Creates a XspfMeta 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 XspfMeta.

Parameters:
element -
Returns:
boolean

isMatch

public static boolean isMatch(RStack stack)
Tests if elements contained in a Stack stack is valid for the XspfMeta. 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 XspfMeta. 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

getContent

public String getContent()
Gets the String property content.

Returns:
String

getContentAsString

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

Returns:
String

getRel

public String getRel()
Gets the String property rel.

Returns:
String

getRelAsString

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

Returns:
String

setContent

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

Parameters:
content -

setContentByString

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

Parameters:
string -

setRel

public void setRel(String rel)
Sets the String property rel.

Parameters:
rel -

setRelByString

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

Parameters:
string -

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 -

setup

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

Parameters:
source -

setup

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

Parameters:
doc -

setup

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

Parameters:
element -

setup

public void setup(RStack stack)
Initializes the XspfMeta 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 XspfMeta by the File file.

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(String uri)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfMeta 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 XspfMeta by the URL url.

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
reader -
Throws:
IOException
SAXException
ParserConfigurationException

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.