Package org.jupnp.support.lastchange
Klasse LastChangeParser
java.lang.Object
org.jupnp.xml.SAXParser
org.jupnp.support.lastchange.LastChangeParser
- Bekannte direkte Unterklassen:
AVTransportLastChangeParser,RenderingControlLastChangeParser
Reads and writes the "LastChange" XML content.
Validates against a schema if the SAXParser.getSchemaSources() method
doesn't return null.
Note: This is broken on most devices and with most services out in the wild. In fact, you might want to use polling the service with actions, to get its status, instead of GENA. Polling can be expensive on low-power control points, however.
- Autor:
- Christian Bauer, Amit Kumar Mondal - Code Refactoring
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Klasse geerbte verschachtelte Klassen/Schnittstellen org.jupnp.xml.SAXParser
SAXParser.Handler<I>, SAXParser.SimpleErrorHandler -
Feldübersicht
Von Klasse geerbte Felder org.jupnp.xml.SAXParser
XML_SCHEMA_NAMESPACE, XML_SCHEMA_RESOURCE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected Documentprotected EventedValue<?> createValue(String name, Map.Entry<String, String>[] attributes) protected voidgenerateEventedValue(EventedValue<?> eventedValue, Document descriptor, Element parentElement) protected voidgenerateInstanceIDs(Event event, Document descriptor, Element rootElement) protected voidgenerateRoot(Event event, Document descriptor) protected Set<Class<? extends EventedValue<?>>> protected abstract StringparseResource(String resource) Uses the current thread's context classloader to read and unmarshall the given resource.Von Klasse geerbte Methoden org.jupnp.xml.SAXParser
create, createSchema, getErrorHandler, getSchemaSources, parse, setContentHandler
-
Konstruktordetails
-
LastChangeParser
public LastChangeParser()
-
-
Methodendetails
-
getNamespace
-
getEventedVariables
-
createValue
protected EventedValue<?> createValue(String name, Map.Entry<String, String>[] attributes) throws Exception- Löst aus:
Exception
-
parseResource
Uses the current thread's context classloader to read and unmarshall the given resource.- Parameter:
resource- The resource on the classpath.- Gibt zurück:
- The unmarshalled Event model.
- Löst aus:
Exception
-
parse
- Löst aus:
Exception
-
generate
- Löst aus:
Exception
-
buildDOM
- Löst aus:
Exception
-
generateRoot
-
generateInstanceIDs
-
generateEventedValue
protected void generateEventedValue(EventedValue<?> eventedValue, Document descriptor, Element parentElement)
-