org.apache.sling.maven.jcrocm
Class FieldDescriptor

java.lang.Object
  extended by org.apache.sling.maven.jcrocm.FieldDescriptor

public class FieldDescriptor
extends java.lang.Object

The FieldDescriptor class provides support for the field-descriptor element of a class mapping, which has the following attribute list definition:

  <!ATTLIST field-descriptor
      fieldName CDATA #REQUIRED
      fieldType CDATA #IMPLIED
      jcrName CDATA #IMPLIED 
      id (true | false) "false"
      path (true | false) "false"
      uuid (true | false) "false"
      converter CDATA #IMPLIED
      jcrDefaultValue CDATA #IMPLIED
      jcrValueConstraints CDATA #IMPLIED 
      jcrType (String | Date | Long | Double | Boolean | Binary) #IMPLIED
      jcrAutoCreated (true | false) "false"
      jcrMandatory (true | false) "false"
      jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) "COPY"
      jcrProtected (true | false) "false"
      jcrMultiple (true | false) "false"
  >
 


Field Summary
static java.lang.String CONVERTER
           
static java.lang.String ELEMENT_FIELD_DESCRIPTOR
           
static java.lang.String FIELD_NAME
          The name of the Doclet Tag attribute naming the field to which the descriptor applies (value is "fieldName").
static java.lang.String ID
           
static java.lang.String JCR_AUTO_CREATED
          The name of the Doclet Tag attribute naming the field to which the descriptor applies (value is "fieldName").
static java.lang.String JCR_DEFAULT_VALUE
           
static java.lang.String JCR_MANDATORY
           
static java.lang.String JCR_MULTIPLE
           
static java.lang.String JCR_NAME
          The name of the Doclet Tag attribute naming the JCR item to which the descriptor applies (value is "jcrName").
static java.lang.String JCR_ON_PARENT_VERSION
           
static java.lang.String JCR_PROTECTED
           
static java.lang.String JCR_TYPE
           
static java.lang.String JCR_VALUE_CONSTRAINTS
           
static java.lang.String PATH
           
protected  com.thoughtworks.qdox.model.DocletTag tag
           
static java.lang.String TAG_FIELD_DESCRIPTOR
           
static java.lang.String UUID
           
 
Method Summary
protected  void log(java.lang.String message)
           
protected  void warn(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_FIELD_DESCRIPTOR

public static final java.lang.String TAG_FIELD_DESCRIPTOR
See Also:
Constant Field Values

ELEMENT_FIELD_DESCRIPTOR

public static final java.lang.String ELEMENT_FIELD_DESCRIPTOR
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

PATH

public static final java.lang.String PATH
See Also:
Constant Field Values

UUID

public static final java.lang.String UUID
See Also:
Constant Field Values

CONVERTER

public static final java.lang.String CONVERTER
See Also:
Constant Field Values

JCR_DEFAULT_VALUE

public static final java.lang.String JCR_DEFAULT_VALUE
See Also:
Constant Field Values

JCR_VALUE_CONSTRAINTS

public static final java.lang.String JCR_VALUE_CONSTRAINTS
See Also:
Constant Field Values

JCR_TYPE

public static final java.lang.String JCR_TYPE
See Also:
Constant Field Values

JCR_MULTIPLE

public static final java.lang.String JCR_MULTIPLE
See Also:
Constant Field Values

FIELD_NAME

public static final java.lang.String FIELD_NAME
The name of the Doclet Tag attribute naming the field to which the descriptor applies (value is "fieldName").

See Also:
Constant Field Values

JCR_NAME

public static final java.lang.String JCR_NAME
The name of the Doclet Tag attribute naming the JCR item to which the descriptor applies (value is "jcrName").

See Also:
Constant Field Values

JCR_AUTO_CREATED

public static final java.lang.String JCR_AUTO_CREATED
The name of the Doclet Tag attribute naming the field to which the descriptor applies (value is "fieldName").

See Also:
Constant Field Values

JCR_MANDATORY

public static final java.lang.String JCR_MANDATORY
See Also:
Constant Field Values

JCR_ON_PARENT_VERSION

public static final java.lang.String JCR_ON_PARENT_VERSION
See Also:
Constant Field Values

JCR_PROTECTED

public static final java.lang.String JCR_PROTECTED
See Also:
Constant Field Values

tag

protected final com.thoughtworks.qdox.model.DocletTag tag
Method Detail

log

protected void log(java.lang.String message)

warn

protected void warn(java.lang.String message)


Copyright © 2007-2009. All Rights Reserved.