|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.table.span.PropertyUtils
public class PropertyUtils
Handles nested Properties.
Example 1:
src="x", href="y"
becomes
<property name="src" value="x"/> <property name="href" value="y"/>
Example 2:
image="x", image.src="y", image.href="z"
becomes
<property name="image" value="x> <property name="src" value="y"/> <property name="href" value="z"/> </property>
Field Summary | |
---|---|
static java.lang.String |
STYLE_PROPERTY
|
Method Summary | |
---|---|
static void |
addInlineProperties(org.w3c.dom.Element target,
Property[] properties)
adds inline properties to caption and converts
the property names to lower case. |
static void |
addProperties(org.w3c.dom.Element target,
Property[] properties)
adds property children to the target element. |
static Property |
getInlineProperty(Property[] props,
java.lang.String name)
returns the Inline Property with given name |
static MemberPropertyMeta[] |
getRootMetas(MemberPropertyMeta[] metas)
removes Metas that correspond to nested properties |
static java.lang.String |
getRootName(java.lang.String propertyName)
if propertyName denotes a nested property (i.e. contains the '.' delimiter), returns the name of the root property. |
static boolean |
isInline(java.lang.String propertyName)
true if name is rendered inline (e.g. |
static boolean |
isNested(java.lang.String propertyName)
true if name contains the delimiter '.' |
static boolean |
isStyleProperty(java.lang.String propertyName)
|
static Property[] |
normalize(Property[] properties)
creates nested properties where the hierarchy is derived by the property names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STYLE_PROPERTY
Method Detail |
---|
public static boolean isNested(java.lang.String propertyName)
public static java.lang.String getRootName(java.lang.String propertyName)
propertyName
- name of nested Property, e.g. "myName.image"
public static boolean isInline(java.lang.String propertyName)
public static boolean isStyleProperty(java.lang.String propertyName)
public static Property[] normalize(Property[] properties)
public static void addProperties(org.w3c.dom.Element target, Property[] properties)
public static void addInlineProperties(org.w3c.dom.Element target, Property[] properties)
caption
and converts
the property names to lower case.
public static MemberPropertyMeta[] getRootMetas(MemberPropertyMeta[] metas)
metas
-
public static Property getInlineProperty(Property[] props, java.lang.String name)
props
- all propertiesname
- one of the names of the inline property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |