com.melloware.jspiff.jaxp
Class XspfAttribution

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

public class XspfAttribution
extends Object
implements Serializable, Cloneable

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

 <element name="attribution">
             <zeroOrMore>
                 <element name="location">
                     <data type="anyURI"/>
                 </element>
             </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
XspfAttribution()
          Creates a XspfAttribution.
XspfAttribution(Document doc)
          Creates a XspfAttribution by the Document doc.
XspfAttribution(Element element)
          Creates a XspfAttribution by the Element element.
XspfAttribution(File file)
          Creates a XspfAttribution by the File file.
XspfAttribution(InputSource is)
          Creates a XspfAttribution by the InputSource is.
XspfAttribution(InputStream in)
          Creates a XspfAttribution by the InputStream in.
XspfAttribution(Reader reader)
          Creates a XspfAttribution by the Reader reader.
XspfAttribution(RStack stack)
          Creates a XspfAttribution by the Stack stack that contains Elements.
XspfAttribution(String uri)
          Creates a XspfAttribution by the String representation of URI uri.
XspfAttribution(URL url)
          Creates a XspfAttribution by the URL url.
XspfAttribution(XspfAttribution source)
          Creates a XspfAttribution.
 
Method Summary
 void addLocation(int index, String location)
          Adds the String property location by index.
 void addLocation(String location)
          Adds the String property location.
 void addLocation(String[] location)
          Adds the String property location.
 void addLocationByString(String string)
          Adds the property value by String.
 void clearLocation()
          Clear the String property location.
 Object clone()
           
 String[] getLocation()
          Gets the String property location.
 String getLocation(int index)
          Gets the String property location by index.
 String[] getLocationAsString()
          Gets the property value as String array.
 String getLocationAsString(int index)
          Gets the property value by index as String.
static boolean isMatch(Element element)
          Tests if a Element element is valid for the XspfAttribution.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfAttribution.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfAttribution.
 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 removeLocation(int index)
          Remove the String property location by index.
 void removeLocation(String location)
          Remove the String property location by object.
 void setLocation(int index, String location)
          Sets the String property location by index.
 void setLocation(String location)
          Sets the String property location.
 void setLocation(String[] location)
          Sets the String property location.
 void setLocationByString(int index, String value)
          Sets the property value by String via index.
 void setLocationByString(String[] strings)
          Sets the property value by String array.
 void setup(Document doc)
          Initializes the XspfAttribution by the Document doc.
 void setup(Element element)
          Initializes the XspfAttribution by the Element element.
 void setup(File file)
          Initializes the XspfAttribution by the File file.
 void setup(InputSource is)
          Initializes the XspfAttribution by the InputSource is.
 void setup(InputStream in)
          Initializes the XspfAttribution by the InputStream in.
 void setup(Reader reader)
          Initializes the XspfAttribution by the Reader reader.
 void setup(RStack stack)
          Initializes the XspfAttribution by the Stack stack that contains Elements.
 void setup(String uri)
          Initializes the XspfAttribution by the String representation of URI uri.
 void setup(URL url)
          Initializes the XspfAttribution by the URL url.
 void setup(XspfAttribution source)
          Initializes the XspfAttribution by the XspfAttribution source.
 int sizeLocation()
          Gets number of the String property location.
 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

XspfAttribution

public XspfAttribution()
Creates a XspfAttribution.


XspfAttribution

public XspfAttribution(XspfAttribution source)
Creates a XspfAttribution.

Parameters:
source -

XspfAttribution

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

Parameters:
stack -

XspfAttribution

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

Parameters:
doc -

XspfAttribution

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

Parameters:
element -

XspfAttribution

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

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

XspfAttribution

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

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

XspfAttribution

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

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

XspfAttribution

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

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

XspfAttribution

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

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

XspfAttribution

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

Parameters:
element -
Returns:
boolean

isMatch

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

getLocation

public String[] getLocation()
Gets the String property location.

Returns:
String[]

getLocation

public String getLocation(int index)
Gets the String property location by index.

Parameters:
index -
Returns:
String

getLocationAsString

public String[] getLocationAsString()
Gets the property value as String array.

Returns:
String[]

getLocationAsString

public String getLocationAsString(int index)
Gets the property value by index as String.

Parameters:
index -
Returns:
String

setLocation

public void setLocation(String[] location)
Sets the String property location.

Parameters:
location -

setLocation

public void setLocation(String location)
Sets the String property location.

Parameters:
location -

setLocation

public void setLocation(int index,
                        String location)
Sets the String property location by index.

Parameters:
index -
location -

setLocationByString

public void setLocationByString(String[] strings)
Sets the property value by String array.

Parameters:
strings -

setLocationByString

public void setLocationByString(int index,
                                String value)
Sets the property value by String via index.

Parameters:
index -
value -

addLocation

public void addLocation(String location)
Adds the String property location.

Parameters:
location -

addLocation

public void addLocation(String[] location)
Adds the String property location.

Parameters:
location -

addLocation

public void addLocation(int index,
                        String location)
Adds the String property location by index.

Parameters:
index -
location -

addLocationByString

public void addLocationByString(String string)
Adds the property value by String.

Parameters:
string -

clearLocation

public void clearLocation()
Clear the String property location.


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 -

removeLocation

public void removeLocation(int index)
Remove the String property location by index.

Parameters:
index -

removeLocation

public void removeLocation(String location)
Remove the String property location by object.

Parameters:
location -

setup

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

Parameters:
source -

setup

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

Parameters:
doc -

setup

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

Parameters:
element -

setup

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

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

setup

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

Parameters:
reader -
Throws:
IOException
SAXException
ParserConfigurationException

sizeLocation

public int sizeLocation()
Gets number of the String property location.

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.