com.melloware.jspiff.jaxp
Class XspfLink

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

public class XspfLink
extends Object
implements Serializable, Cloneable

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

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

             <data type="anyURI"/>
         </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
XspfLink()
          Creates a XspfLink.
XspfLink(Document doc)
          Creates a XspfLink by the Document doc.
XspfLink(Element element)
          Creates a XspfLink by the Element element.
XspfLink(File file)
          Creates a XspfLink by the File file.
XspfLink(InputSource is)
          Creates a XspfLink by the InputSource is.
XspfLink(InputStream in)
          Creates a XspfLink by the InputStream in.
XspfLink(Reader reader)
          Creates a XspfLink by the Reader reader.
XspfLink(RStack stack)
          Creates a XspfLink by the Stack stack that contains Elements.
XspfLink(String uri)
          Creates a XspfLink by the String representation of URI uri.
XspfLink(URL url)
          Creates a XspfLink by the URL url.
XspfLink(XspfLink source)
          Creates a XspfLink.
 
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 XspfLink.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfLink.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfLink.
 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 XspfLink by the Document doc.
 void setup(Element element)
          Initializes the XspfLink by the Element element.
 void setup(File file)
          Initializes the XspfLink by the File file.
 void setup(InputSource is)
          Initializes the XspfLink by the InputSource is.
 void setup(InputStream in)
          Initializes the XspfLink by the InputStream in.
 void setup(Reader reader)
          Initializes the XspfLink by the Reader reader.
 void setup(RStack stack)
          Initializes the XspfLink by the Stack stack that contains Elements.
 void setup(String uri)
          Initializes the XspfLink by the String representation of URI uri.
 void setup(URL url)
          Initializes the XspfLink by the URL url.
 void setup(XspfLink source)
          Initializes the XspfLink by the XspfLink 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

XspfLink

public XspfLink()
Creates a XspfLink.


XspfLink

public XspfLink(XspfLink source)
Creates a XspfLink.

Parameters:
source -

XspfLink

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

Parameters:
stack -

XspfLink

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

Parameters:
doc -

XspfLink

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

Parameters:
element -

XspfLink

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

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

XspfLink

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

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

XspfLink

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

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

XspfLink

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

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

XspfLink

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

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

XspfLink

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

Parameters:
element -
Returns:
boolean

isMatch

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

Parameters:
source -

setup

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

Parameters:
doc -

setup

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

Parameters:
element -

setup

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

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(Reader reader)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfLink 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.