public class MetadataInterrogator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MetadataInterrogator.ConstraintIds |
Constructor and Description |
---|
MetadataInterrogator(Metadata meta) |
Modifier and Type | Method and Description |
---|---|
Integer |
getLargestMinLength()
get the largest min occurs value
|
static Integer |
getLargestMinLength(Metadata meta)
get the largest min occurs value
|
Integer |
getLargestMinOccurs()
get the largest min occurs value
|
static Integer |
getLargestMinOccurs(Metadata meta)
get the largest min occurs value
|
static Long |
getLargestMinValue(Metadata meta) |
static Date |
getLargestMinValueDate(Metadata meta,
DateParser parser,
Object dataValue) |
static Double |
getLargestMinValueDouble(Metadata meta) |
static String |
getNextState(Metadata meta)
Use to determine if the field is required for the next state.
|
Integer |
getSmallestMaxLength() |
static Integer |
getSmallestMaxLength(Metadata meta) |
Integer |
getSmallestMaxOccurs()
checks if this field is a repeating field
|
static Integer |
getSmallestMaxOccurs(Metadata meta)
Returns the smallest max occurs
|
static Long |
getSmallestMaxValue(Metadata meta) |
static Date |
getSmallestMaxValueDate(Metadata meta,
DateParser parser,
Object dataValue) |
static Double |
getSmallestMaxValueDouble(Metadata meta) |
static boolean |
hasConstraint(Metadata meta,
MetadataInterrogator.ConstraintIds id)
Returns true if the metadata contains the specified constraint
|
static boolean |
hasConstraint(Metadata meta,
String id)
Returns true if the metadata contains the specified constraint
|
boolean |
hasConstraint(String id)
Returns true if the metadata contains the specified constraint
|
boolean |
isMultilined() |
static boolean |
isMultilined(Metadata meta) |
boolean |
isRepeating()
checks if this field is a repeating field
|
static boolean |
isRepeating(Metadata meta)
checks if this field is a repeating field
|
boolean |
isRequired()
checks if is required
|
static boolean |
isRequired(Metadata meta)
checks if is required
|
static boolean |
isRequiredForNextState(Metadata meta)
Use to determine if the field is required for the next state.
|
public MetadataInterrogator(Metadata meta)
public boolean hasConstraint(String id)
public boolean isRequired()
public Integer getLargestMinOccurs()
public boolean isRepeating()
public Integer getSmallestMaxOccurs()
public Integer getLargestMinLength()
public Integer getSmallestMaxLength()
public boolean isMultilined()
public static boolean hasConstraint(Metadata meta, MetadataInterrogator.ConstraintIds id)
public static boolean hasConstraint(Metadata meta, String id)
public static boolean isRequired(Metadata meta)
public static boolean isRequiredForNextState(Metadata meta)
meta
- public static String getNextState(Metadata meta)
meta
- public static Integer getLargestMinOccurs(Metadata meta)
public static boolean isRepeating(Metadata meta)
public static Integer getSmallestMaxOccurs(Metadata meta)
public static Integer getLargestMinLength(Metadata meta)
public static Integer getSmallestMaxLength(Metadata meta)
public static boolean isMultilined(Metadata meta)
public static Long getLargestMinValue(Metadata meta)
public static Long getSmallestMaxValue(Metadata meta)
public static Double getLargestMinValueDouble(Metadata meta)
public static Double getSmallestMaxValueDouble(Metadata meta)
public static Date getLargestMinValueDate(Metadata meta, DateParser parser, Object dataValue)
public static Date getSmallestMaxValueDate(Metadata meta, DateParser parser, Object dataValue)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.