public class BorderPeer extends java.lang.Object implements SerialPropertyPeer
SerialPropertyPeer for Border properties.| Constructor and Description |
|---|
BorderPeer() |
| Modifier and Type | Method and Description |
|---|---|
static Border.Side |
fromString(java.lang.String value)
Generates a
Border.Side from a string representation. |
static org.w3c.dom.Node |
toNode(Context context,
Border border)
Creates a
Node representation of the border state suitable for appending to a property element. |
java.lang.Object |
toProperty(Context context,
java.lang.Class objectClass,
org.w3c.dom.Element propertyElement)
Translates an XML representation of a property to a property value object.
|
static java.lang.String |
toString(Border.Side side)
Generates a string representation of a
Border.Side |
static java.lang.String |
toString(Border border)
Generates a string representation of a
Border |
void |
toXml(Context context,
java.lang.Class objectClass,
org.w3c.dom.Element propertyElement,
java.lang.Object propertyValue)
Translates an object to an XML representation of a property.
|
public static final Border.Side fromString(java.lang.String value) throws SerialException
Border.Side from a string representation.
To create a non-multisided border from a string, simply pass the returned
Border.Side to the constructor of a new Border.value - the string representationBorder.SideSerialException - if the string is not a valid representation of a Border.Sidepublic static final org.w3c.dom.Node toNode(Context context, Border border) throws SerialException
Node representation of the border state suitable for appending to a property element.context - the relevant Contextborder - the border to renderText or Element nodeSerialExceptionpublic static final java.lang.String toString(Border border) throws SerialException
Borderborder - the borderSerialExceptionpublic static final java.lang.String toString(Border.Side side) throws SerialException
Border.Sideside - the border sideSerialExceptionpublic java.lang.Object toProperty(Context context, java.lang.Class objectClass, org.w3c.dom.Element propertyElement) throws SerialException
SerialPropertyPeertoProperty in interface SerialPropertyPeercontext - the relevant ContextobjectClass - the class of the property containerpropertyElement - the XML <p> element to processSerialException - when the property cannot be de-serialized.SerialPropertyPeer.toProperty(Context,
Class, org.w3c.dom.Element)public void toXml(Context context, java.lang.Class objectClass, org.w3c.dom.Element propertyElement, java.lang.Object propertyValue) throws SerialException
SerialPropertyPeertoXml in interface SerialPropertyPeercontext - the relevant contextobjectClass - the class of the property containerpropertyElement - the XML <p> element in which the
property value should be renderedpropertyValue - the property valueSerialExceptionSerialPropertyPeer.toXml(nextapp.echo.app.util.Context,
java.lang.Class, org.w3c.dom.Element, java.lang.Object)