Class VersionTypeBinding
- Object
-
- VersionTypeBinding
-
- All Implemented Interfaces:
Binding
,SimpleBinding
public class VersionTypeBinding extends Object implements SimpleBinding
Binding for FES 2.0VersionType
mapping toVersion
-
-
Constructor Summary
Constructors Constructor Description VersionTypeBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encode(Object object, String value)
Performs the encoding of the object as a String.int
getExecutionMode()
QName
getTarget()
Class<?>
getType()
Object
parse(InstanceComponent instance, Object value)
Parses an instance component (element or attribute) into an object representation.
-
-
-
Method Detail
-
getTarget
public QName getTarget()
-
getType
public Class<?> getType()
-
getExecutionMode
public int getExecutionMode()
- Specified by:
getExecutionMode
in interfaceBinding
- Returns:
- The execution mode of the binding, one of the constants AFTER, BEFORE, or OVERRIDE.
- See Also:
Binding.AFTER
,Binding.BEFORE
,Binding.OVERRIDE
-
parse
public Object parse(InstanceComponent instance, Object value) throws Exception
Description copied from interface:SimpleBinding
Parses an instance component (element or attribute) into an object representation.- Specified by:
parse
in interfaceSimpleBinding
- Parameters:
instance
- The component being parsed.value
- The result of the parse from another strategy in the type hierarchy. Could be null if this is the first strategy being executed.- Returns:
- The parsed object, or null if the component could not be parsed.
- Throws:
Exception
-
encode
public String encode(Object object, String value) throws Exception
Description copied from interface:SimpleBinding
Performs the encoding of the object as a String.- Specified by:
encode
in interfaceSimpleBinding
- Parameters:
object
- The object being encoded, never null.value
- The string returned from another binding in the type hierachy, which could be null.- Returns:
- A String representing the object.
- Throws:
Exception
-
-