org.kuali.student.common.assembly.data
Class Metadata

java.lang.Object
  extended by org.kuali.student.common.assembly.data.Metadata
All Implemented Interfaces:
Serializable

public class Metadata
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class Metadata.WriteAccess
           
 
Field Summary
private  List<LookupMetadata> additionalLookups
           
private  boolean canEdit
           
private  boolean canUnmask
           
private  boolean canView
           
private  Map<String,Metadata> childProperties
           
private  List<ConstraintMetadata> constraints
           
private  Data.DataType dataType
           
private  Data.Value defaultValue
           
private  String defaultValuePath
           
private  boolean dynamic
           
private  LookupMetadata initialLookup
           
private  String labelKey
           
private  String lookupContextPath
           
protected  String maskFormatter
           
private  String name
           
private  boolean onChangeRefreshMetadata
           
protected  String partialMaskFormatter
           
private static long serialVersionUID
           
private  Metadata.WriteAccess writeAccess
           
 
Constructor Summary
Metadata()
           
Metadata(Metadata toClone)
          This constructs a new Metadata instance.
 
Method Summary
protected  void _toString(StringBuilder sb)
           
 List<LookupMetadata> getAdditionalLookups()
           
 List<ConstraintMetadata> getConstraints()
           
 Data.DataType getDataType()
           
 Data.Value getDefaultValue()
           
 String getDefaultValuePath()
           
 LookupMetadata getInitialLookup()
           
 String getLabelKey()
           
 String getLookupContextPath()
           
 String getMaskFormatter()
           
 String getName()
           
 String getPartialMaskFormatter()
           
 Map<String,Metadata> getProperties()
           
 Metadata.WriteAccess getWriteAccess()
           
 boolean isCanEdit()
           
 boolean isCanUnmask()
           
 boolean isCanView()
           
 boolean isDynamic()
           
 boolean isOnChangeRefreshMetadata()
           
 void setAdditionalLookups(List<LookupMetadata> additionalLookups)
           
 void setCanEdit(boolean canEdit)
           
 void setCanUnmask(boolean canUnmask)
           
 void setCanView(boolean canView)
           
 void setConstraints(List<ConstraintMetadata> constraints)
           
 void setDataType(Data.DataType dataType)
           
 void setDefaultValue(Data.Value defaultValue)
           
 void setDefaultValuePath(String defaultValuePath)
           
 void setDynamic(boolean dynamic)
           
 void setInitialLookup(LookupMetadata initialLookup)
           
 void setLabelKey(String labelKey)
           
 void setLookupContextPath(String lookupContextPath)
           
 void setMaskFormatter(String maskFormatter)
           
 void setName(String name)
           
 void setNonServerConstraints(List<ConstraintMetadata> constraints)
          This is used to set all non-server side constraints for the metadata.
 void setOnChangeRefreshMetadata(boolean onChangeRefereshMetadata)
           
 void setPartialMaskFormatter(String partialMaskFormatter)
           
 void setProperties(Map<String,Metadata> properties)
           
 void setWriteAccess(Metadata.WriteAccess writeAccess)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

name

private String name

labelKey

private String labelKey

writeAccess

private Metadata.WriteAccess writeAccess

canUnmask

private boolean canUnmask

canView

private boolean canView

canEdit

private boolean canEdit

dynamic

private boolean dynamic

partialMaskFormatter

protected String partialMaskFormatter

maskFormatter

protected String maskFormatter

onChangeRefreshMetadata

private boolean onChangeRefreshMetadata

dataType

private Data.DataType dataType

defaultValue

private Data.Value defaultValue

defaultValuePath

private String defaultValuePath

constraints

private List<ConstraintMetadata> constraints

initialLookup

private LookupMetadata initialLookup

lookupContextPath

private String lookupContextPath

additionalLookups

private List<LookupMetadata> additionalLookups

childProperties

private Map<String,Metadata> childProperties
Constructor Detail

Metadata

public Metadata()

Metadata

public Metadata(Metadata toClone)
This constructs a new Metadata instance. References to non-Metadata objects are maintained, as no permissions are applied to them.

Parameters:
toClone - the Metadata instance to be cloned
Method Detail

toString

public String toString()
Overrides:
toString in class Object

_toString

protected void _toString(StringBuilder sb)

getConstraints

public List<ConstraintMetadata> getConstraints()

setConstraints

public void setConstraints(List<ConstraintMetadata> constraints)

setNonServerConstraints

public void setNonServerConstraints(List<ConstraintMetadata> constraints)
This is used to set all non-server side constraints for the metadata.

Parameters:
constraints -

getDataType

public Data.DataType getDataType()

setDataType

public void setDataType(Data.DataType dataType)

getDefaultValue

public Data.Value getDefaultValue()

setDefaultValue

public void setDefaultValue(Data.Value defaultValue)

getDefaultValuePath

public String getDefaultValuePath()

setDefaultValuePath

public void setDefaultValuePath(String defaultValuePath)

getInitialLookup

public LookupMetadata getInitialLookup()

setInitialLookup

public void setInitialLookup(LookupMetadata initialLookup)

getLookupContextPath

public String getLookupContextPath()

setLookupContextPath

public void setLookupContextPath(String lookupContextPath)

getAdditionalLookups

public List<LookupMetadata> getAdditionalLookups()

setAdditionalLookups

public void setAdditionalLookups(List<LookupMetadata> additionalLookups)

getProperties

public Map<String,Metadata> getProperties()

setProperties

public void setProperties(Map<String,Metadata> properties)

getWriteAccess

public Metadata.WriteAccess getWriteAccess()

setWriteAccess

public void setWriteAccess(Metadata.WriteAccess writeAccess)

isOnChangeRefreshMetadata

public boolean isOnChangeRefreshMetadata()

setOnChangeRefreshMetadata

public void setOnChangeRefreshMetadata(boolean onChangeRefereshMetadata)

isCanUnmask

public boolean isCanUnmask()

setCanUnmask

public void setCanUnmask(boolean canUnmask)

isCanView

public boolean isCanView()

setCanView

public void setCanView(boolean canView)

isCanEdit

public boolean isCanEdit()

setCanEdit

public void setCanEdit(boolean canEdit)

getName

public String getName()

setName

public void setName(String name)

isDynamic

public boolean isDynamic()

setDynamic

public void setDynamic(boolean dynamic)

getLabelKey

public String getLabelKey()

setLabelKey

public void setLabelKey(String labelKey)

getPartialMaskFormatter

public String getPartialMaskFormatter()

setPartialMaskFormatter

public void setPartialMaskFormatter(String partialMaskFormatter)

getMaskFormatter

public String getMaskFormatter()

setMaskFormatter

public void setMaskFormatter(String maskFormatter)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.