ecologylab.xml.library.jnlp
Class JnlpState

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.xml.ElementState
          extended by ecologylab.xml.library.jnlp.JnlpState
All Implemented Interfaces:
FieldTypes, XMLTranslationExceptionTypes, java.lang.Cloneable

public class JnlpState
extends ElementState
implements java.lang.Cloneable

Parses JNLP files for Java web launch. Field comments from: http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html

Author:
Zachary O. Toups (toupsz@cs.tamu.edu)

Nested Class Summary
 
Nested classes/interfaces inherited from class ecologylab.xml.ElementState
ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_bind_from, ElementState.xml_bind_to, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_format, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_nowrap, ElementState.xml_other_tags, ElementState.xml_scope, ElementState.xml_tag, ElementState.xml_text
 
Field Summary
 
Fields inherited from class ecologylab.xml.ElementState
CDATA, NORMAL, UTF16, UTF16_LE, UTF8
 
Fields inherited from interface ecologylab.xml.FieldTypes
ATTRIBUTE, AWFUL_OLD_NESTED_ELEMENT, BAD_FIELD, COLLECTION_ELEMENT, COLLECTION_SCALAR, IGNORED_ATTRIBUTE, IGNORED_ELEMENT, LEAF, MAP_ELEMENT, MAP_SCALAR, NAME_SPACE_ATTRIBUTE, NAME_SPACE_LEAF_NODE, NAME_SPACE_MASK, NAME_SPACE_NESTED_ELEMENT, NAMESPACE_IGNORED_ELEMENT, NAMESPACE_TRIAL_ELEMENT, NESTED_ELEMENT, PSEUDO_FIELD_DESCRIPTOR, ROOT, TEXT_ELEMENT, TEXT_NODE_VALUE, UNSET_TYPE, WRAPPER, XMLNS_ATTRIBUTE, XMLNS_IGNORED
 
Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN
 
Constructor Summary
JnlpState()
          No-arg constructor for XML translation.
 
Method Summary
 JnlpState clone()
           
 boolean equals(java.lang.Object obj)
           
 AppletDesc getAppletDesc()
           
 ApplicationDesc getApplicationDesc()
           
 java.lang.String getHref()
           
 java.util.ArrayList<InformationElement> getInformations()
           
static void main(java.lang.String[] args)
           
 void setAppletDesc(AppletDesc appletDesc)
          Sets the applet description and clears the application description (since there can only be one or the other) and any previous applet descriptions.
 void setApplicationDesc(ApplicationDesc applicationDesc)
          Sets the application description and clears the applet description (since there can only be one or the other) and any previous application descriptions.
 void setCodebase(java.lang.String codebase)
           
 void setHref(java.lang.String href)
           
 
Methods inherited from class ecologylab.xml.ElementState
buildDOM, buildDOM, buildDOM, buildDOM, buildDOM, buildDOMFromXMLCharSequence, buildDOMFromXMLString, checkAnnotation, classDescriptor, createParentDirs, getChildFieldAccessors, getElementStateById, getFieldDescriptors, getNestedNameSpace, getTextNodeString, hasScalarTextField, lookupNestedNameSpace, parent, recycle, setDeclarationStyle, setParent, setUseDOMForTranslateTo, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXMLCharSequence, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOMCharSequence, translateFromXMLDOMCharSequence, translateFromXMLRootNode, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateToDOM, translateToXML, translateToXML, translateToXML, translateToXML, writePrettyXML, writePrettyXML, writePrettyXML
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JnlpState

public JnlpState()
No-arg constructor for XML translation.

Method Detail

getAppletDesc

public AppletDesc getAppletDesc()
Returns:
the applet description, if any (returns null if there is not one)

setAppletDesc

public void setAppletDesc(AppletDesc appletDesc)
Sets the applet description and clears the application description (since there can only be one or the other) and any previous applet descriptions.

Parameters:
appletDesc - the appletDesc to set

getApplicationDesc

public ApplicationDesc getApplicationDesc()
Returns:
the application description, if any (returns null if there is not one)

setApplicationDesc

public void setApplicationDesc(ApplicationDesc applicationDesc)
Sets the application description and clears the applet description (since there can only be one or the other) and any previous application descriptions.

Parameters:
applicationDesc - the applicationDesc to set

getHref

public java.lang.String getHref()
Returns:
the href

setHref

public void setHref(java.lang.String href)
Parameters:
href - the href to set

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

main

public static void main(java.lang.String[] args)
                 throws XMLTranslationException
Throws:
XMLTranslationException

setCodebase

public void setCodebase(java.lang.String codebase)
Parameters:
codebase - the codebase to set

clone

public JnlpState clone()
Overrides:
clone in class java.lang.Object
See Also:
ecologylab.xml.types.element.ArrayListState#clone()

getInformations

public java.util.ArrayList<InformationElement> getInformations()