Class V8FeatureValue.Builder

java.lang.Object
com.e1c.langtool.v8.dt.collector.V8FeatureValue.Builder
Enclosing class:
V8FeatureValue

public static class V8FeatureValue.Builder extends Object
The Class Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • fromUri

      @Deprecated public static V8FeatureValue.Builder fromUri(org.eclipse.emf.common.util.URI objectUri)
      Deprecated.
      From uri.
      Parameters:
      objectUri - the object uri
      Returns:
      the builder
    • fromFeatureValue

      public static V8FeatureValue.Builder fromFeatureValue(FeatureValue fv)
      From feature value.
      Parameters:
      fv - the feature value
      Returns:
      the builder
    • setObjectUri

      public V8FeatureValue.Builder setObjectUri(org.eclipse.emf.common.util.URI objectUri)
      Sets the object uri.
      Parameters:
      objectUri - the objectUri to set
      Returns:
      the builder
    • setFile

      public V8FeatureValue.Builder setFile(org.eclipse.core.resources.IFile file)
      Sets the file.
      Parameters:
      file - the file
      Returns:
      the builder
    • getFile

      public org.eclipse.core.resources.IFile getFile()
      Gets the file.
      Returns:
      the file
    • setFeatureSettings

      public V8FeatureValue.Builder setFeatureSettings(EFeatureSettings settings)
      Sets the feature settings.
      Parameters:
      settings - the settings
      Returns:
      the builder
    • getFeatureKey

      public FeatureKey getFeatureKey()
      Gets the feature key.
      Returns:
      the feature key
    • setFeatureKey

      public V8FeatureValue.Builder setFeatureKey(FeatureKey featureKey)
      Sets the feature key.
      Parameters:
      featureKey - the feature key
      Returns:
      the builder
    • getValue

      public String getValue()
      Gets the value of object feature.
      Returns:
      the value
    • setValue

      public V8FeatureValue.Builder setValue(String featureValue)
      Sets the value of object feature.
      Parameters:
      featureValue - the feature value
      Returns:
      the builder
    • setComputedValue

      public V8FeatureValue.Builder setComputedValue(boolean computedValue)
      Sets that value is computed.
      Parameters:
      computedValue - the computed value
      Returns:
      the builder
    • isComputedValue

      public boolean isComputedValue()
      Gets whethee the value is computed.
      Returns:
      true, if the value is computed value
    • isUnknown

      public boolean isUnknown()
      Gets whether the value is unknown.
      Returns:
      true, if is unknown
    • isTag

      public boolean isTag()
      Checks if is tag or tag parameter.
      Returns:
      true, if is tag or tag parameter
    • getLocalStrings

      public Map<String,String> getLocalStrings()
      Gets the local strings of object feature.
      Returns:
      the Map of local strings. The key of entry is "Language code" and the value of entry is the "local string" in this language. Cannot be null.
    • getComment

      public String getComment()
      Gets the comment.
      Returns:
      the comment
    • setComment

      public void setComment(String comment)
      Sets the comment.
      Parameters:
      comment - the comment to set
    • build

      public FeatureValue build()
      Builds the.
      Returns:
      the v 8 feature value