Tabnine Logo
TypeEditor.getRequiredType
Code IndexAdd Tabnine to your IDE (free)

How to use
getRequiredType
method
in
org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor

Best Java code snippets using org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.getRequiredType (Showing top 3 results out of 315)

origin: apache/jackrabbit-oak

private void checkPropertyTypeConstraints(PropertyState after)
    throws CommitFailedException {
  if (NodeStateUtils.isHidden(after.getName())) {
    return;
  }
  NodeState definition = effective.getDefinition(after);
  if (definition == null) {
    constraintViolation(4, "No matching property definition found for " + after);
  } else if (JCR_UUID.equals(after.getName()) && effective.isNodeType(MIX_REFERENCEABLE)) {
    // special handling for the jcr:uuid property of mix:referenceable
    // TODO: this should be done in a pluggable extension
    if (!isValidUUID(after.getValue(Type.STRING))) {
      constraintViolation(12, "Invalid UUID value in the jcr:uuid property");
    }
  } else {
    int requiredType = getRequiredType(definition);
    if (requiredType != PropertyType.UNDEFINED) {
      checkRequiredType(after, requiredType);
      checkValueConstraints(definition, after, requiredType);
    }
  }
}
origin: org.apache.jackrabbit/oak-core

private void checkPropertyTypeConstraints(PropertyState after)
    throws CommitFailedException {
  if (NodeStateUtils.isHidden(after.getName())) {
    return;
  }
  NodeState definition = effective.getDefinition(after);
  if (definition == null) {
    constraintViolation(4, "No matching property definition found for " + after);
  } else if (JCR_UUID.equals(after.getName()) && effective.isNodeType(MIX_REFERENCEABLE)) {
    // special handling for the jcr:uuid property of mix:referenceable
    // TODO: this should be done in a pluggable extension
    if (!isValidUUID(after.getValue(Type.STRING))) {
      constraintViolation(12, "Invalid UUID value in the jcr:uuid property");
    }
  } else {
    int requiredType = getRequiredType(definition);
    if (requiredType != PropertyType.UNDEFINED) {
      checkRequiredType(after, requiredType);
      checkValueConstraints(definition, after, requiredType);
    }
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

private void checkPropertyTypeConstraints(PropertyState after)
    throws CommitFailedException {
  if (NodeStateUtils.isHidden(after.getName())) {
    return;
  }
  NodeState definition = effective.getDefinition(after);
  if (definition == null) {
    constraintViolation(4, "No matching property definition found for " + after);
  } else if (JCR_UUID.equals(after.getName()) && effective.isNodeType(MIX_REFERENCEABLE)) {
    // special handling for the jcr:uuid property of mix:referenceable
    // TODO: this should be done in a pluggable extension
    if (!isValidUUID(after.getValue(Type.STRING))) {
      constraintViolation(12, "Invalid UUID value in the jcr:uuid property");
    }
  } else {
    int requiredType = getRequiredType(definition);
    if (requiredType != PropertyType.UNDEFINED) {
      checkRequiredType(after, requiredType);
      checkValueConstraints(definition, after, requiredType);
    }
  }
}
org.apache.jackrabbit.oak.plugins.nodetypeTypeEditorgetRequiredType

Popular methods of TypeEditor

  • <init>
  • checkNodeTypeConstraints
  • checkPropertyTypeConstraints
  • checkRequiredType
  • checkValueConstraints
  • childNodeChanged
  • constraintViolation
    Throws or logs the specified constraint violation.
  • createEffectiveType
  • getEffective
  • getPath
  • mixinsChanged
  • primaryChanged
  • mixinsChanged,
  • primaryChanged,
  • propertyChanged,
  • childNodeDeleted,
  • create,
  • propertyDeleted

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now