Package org.refcodes.struct.ext.factory
Class HtmlCanonicalMapFactory
java.lang.Object
org.refcodes.struct.ext.factory.AbstractCanonicalMapFactory
org.refcodes.struct.ext.factory.HtmlCanonicalMapFactory
- All Implemented Interfaces:
org.refcodes.factory.MarshalTypeFactory<org.refcodes.struct.CanonicalMap,String>
,org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap,InputStream>
,org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComposite<org.refcodes.struct.CanonicalMap,String,InputStream>
,org.refcodes.factory.UnmarshalTypeFactory<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
,org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,InputStream>
,org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String,InputStream>
,CanonicalMapFactory
- Direct Known Subclasses:
HtmlCanonicalMapFactorySingleton
public class HtmlCanonicalMapFactory extends AbstractCanonicalMapFactory implements CanonicalMapFactory
Implementation of the
CanonicalMapFactory
for parsing the HTML
notation.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.factory.MarshalTypeFactory
org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<T extends Object,C extends Object>, org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComposite<T extends Object,SRC extends Object,C extends Object>
Nested classes/interfaces inherited from interface org.refcodes.factory.UnmarshalTypeFactory
org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T extends Object,C extends Object>, org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<T extends Object,SRC extends Object,C extends Object>
-
Field Summary
Fields Modifier and Type Field Description static String
BODY
static String
COMMENT_CLOSE
static String
COMMENT_OPEN
static String
HEAD
static String
HTML
static String[]
ROOT_SELECTOR
Fields inherited from interface org.refcodes.struct.ext.factory.CanonicalMapFactory
COMMENT_PROPERTY, DELIMITER_PROPERTY, SUPPORTED_DELIMITERS_PROPERTY
-
Constructor Summary
Constructors Constructor Description HtmlCanonicalMapFactory()
-
Method Summary
Modifier and Type Method Description org.refcodes.struct.CanonicalMap.CanonicalMapBuilder
fromMarshaled(InputStream aExternalRepresentation)
org.refcodes.struct.CanonicalMap.CanonicalMapBuilder
fromMarshaled(InputStream aExternalRepresentation, Map<String,String> aProperties)
InputStream
fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure)
InputStream
fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure, Map<String,String> aProperties)
String
toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure)
String
toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure, Map<String,String> aProperties)
org.refcodes.struct.CanonicalMap.CanonicalMapBuilder
toUnmarshaled(String aExternalRepresentation, Map<String,String> aProperties)
Methods inherited from class org.refcodes.struct.ext.factory.AbstractCanonicalMapFactory
postProcess, toComment, toDelimiter, toInputStream, toString, toSupportedDelimiters, toXml
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.struct.ext.factory.CanonicalMapFactory
toUnmarshaled
-
Field Details
-
BODY
- See Also:
- Constant Field Values
-
HEAD
- See Also:
- Constant Field Values
-
HTML
- See Also:
- Constant Field Values
-
ROOT_SELECTOR
-
COMMENT_OPEN
- See Also:
- Constant Field Values
-
COMMENT_CLOSE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
HtmlCanonicalMapFactory
public HtmlCanonicalMapFactory()
-
-
Method Details
-
fromMarshaled
public org.refcodes.struct.CanonicalMap.CanonicalMapBuilder fromMarshaled(InputStream aExternalRepresentation) throws org.refcodes.exception.UnmarshalException- Specified by:
fromMarshaled
in interfaceorg.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,InputStream>
- Throws:
org.refcodes.exception.UnmarshalException
-
fromMarshaled
public org.refcodes.struct.CanonicalMap.CanonicalMapBuilder fromMarshaled(InputStream aExternalRepresentation, Map<String,String> aProperties) throws org.refcodes.exception.UnmarshalException- Specified by:
fromMarshaled
in interfaceorg.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,InputStream>
- Throws:
org.refcodes.exception.UnmarshalException
-
toUnmarshaled
public org.refcodes.struct.CanonicalMap.CanonicalMapBuilder toUnmarshaled(String aExternalRepresentation, Map<String,String> aProperties) throws org.refcodes.exception.UnmarshalException- Specified by:
toUnmarshaled
in interfaceCanonicalMapFactory
- Specified by:
toUnmarshaled
in interfaceorg.refcodes.factory.UnmarshalTypeFactory<org.refcodes.struct.CanonicalMap.CanonicalMapBuilder,String>
- Throws:
org.refcodes.exception.UnmarshalException
-
toMarshaled
public String toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure) throws org.refcodes.exception.MarshalException- Specified by:
toMarshaled
in interfaceCanonicalMapFactory
- Specified by:
toMarshaled
in interfaceorg.refcodes.factory.MarshalTypeFactory<org.refcodes.struct.CanonicalMap,String>
- Throws:
org.refcodes.exception.MarshalException
-
toMarshaled
public String toMarshaled(org.refcodes.struct.CanonicalMap aDataStructure, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException- Specified by:
toMarshaled
in interfaceCanonicalMapFactory
- Specified by:
toMarshaled
in interfaceorg.refcodes.factory.MarshalTypeFactory<org.refcodes.struct.CanonicalMap,String>
- Throws:
org.refcodes.exception.MarshalException
-
fromUnmarshaled
public InputStream fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure) throws org.refcodes.exception.MarshalException- Specified by:
fromUnmarshaled
in interfaceorg.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap,InputStream>
- Throws:
org.refcodes.exception.MarshalException
-
fromUnmarshaled
public InputStream fromUnmarshaled(org.refcodes.struct.CanonicalMap aDataStructure, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException- Specified by:
fromUnmarshaled
in interfaceorg.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.struct.CanonicalMap,InputStream>
- Throws:
org.refcodes.exception.MarshalException
-